这是代码。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");
}