返回一个密封类运行该代码的方法: _foo = MockRepository.GenerateStub<IBar>();
_foo.Stub(x => x.Foo()).Return("sdf");
当 public interface IBar
{
string Foo();
}
public class Bar : IBar
{
public string
我是新来嘲笑,所以我需要一点关于如何嘲笑HttpPostedFileBase犀牛嘲笑的指导。我想验证我的ToByteArray()扩展按预期工作,这是我到目前为止有: [Test]
public void Should_return_a_byte_array_with_a_length_of_eleven()
{
// Arrange
var strea