【发布时间】:2010-07-14 12:36:13
【问题描述】:
这是代码。 GetParentPath 正常调用!
[TestMethod]
[HostType("Moles")]
public void GetParentPath_slashOnEnd_returns()
{
var sapi = new MPhotobucketApi();
sapi.GetParentPathString = s => s;
var api = new PhotobucketApi();
var parentPath = api.GetParentPath("hello/world/");
Assert.AreEqual(parentPath, "hello");
}
【问题讨论】:
-
测试通过了吗?您希望发生什么不会发生的事情?
-
对 GetParentPath 的调用应该重定向到 's => s' 委托。