public void RejectsTypedObjectMismatch() { Action act = () => { Mock.Get(this.service).Verify( x => x.DoSomething(It.Is(Equivalent.To <TestObject>(this.fixture.Create <TestObject>())))); }; act.Should().Throw <AssertFailedException>(); }
public void MatchesDynamicObject() { Mock.Get(this.service).Verify( x => x.DoSomething( It.Is( Equivalent.To <TestObject>( new { Value = [email protected], Child = new { ChildValue = [email protected] } })))); }
public void MatchesTypedObject() { Mock.Get(this.service).Verify(x => x.DoSomething(It.Is(Equivalent.To <TestObject>(this.from)))); }