FakeItEasy - problems with new modifier
问题 It appears that the following code doesn't behave as I would expect: using FakeItEasy; using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { var derived = A.Fake<IDerived>(); A.CallTo(() => derived.Dependency).Returns(null); IBase baseObj = derived; Assert.IsNull(baseObj.Dependency); //Fails } } public interface IDerived : IBase { new IDependency Dependency { get; } } public interface IBase { IDependency Dependency {