【发布时间】:2013-02-16 23:08:56
【问题描述】:
class Parent{
public string Name{ get; set; }
}
class Child :Parent{
public string address{ get; set; }
}
[TestClass]
class TestClass{
[TestMethod]
public void TestMethod()
{
var c = new Fakes.Child();
c.addressGet = "foo"; // I can see that
c.NameGet = "bar"; // This DOES NOT exists
}
}
如何设置上述代码示例中的“名称”?
【问题讨论】:
-
我也很好奇如何实现这一点。你有没有在其他地方得到任何答案?
标签: c# microsoft-fakes