public void ShouldAssertPropertySetNegativeWithMatcher() { // Arrange var container = new MockingContainer <Module>(); // Assert container.AssertSet <IService>(x => x.Value = Arg.AnyInt, Occurs.Never()); }
public void ShouldAssertPropertySetNegative() { DebugView.IsTraceEnabled = true; // Arrange var container = new MockingContainer <Module>(); // Assert container.AssertSet <IService>(x => x.Value = 99, Occurs.Never()); }
public void ShouldAssertPropertySetWithMatcher() { // Arrange var container = new MockingContainer <Module>(); // Act container.Get <IService>().Value = 99; // Assert container.AssertSet <IService>(x => x.Value = Arg.AnyInt); }