public void VerifyNullMethodThrows() { // Arrange var dummyComposer = new Fixture(); var sut = new EqualityComparerEqualsSymmetricAssertion(dummyComposer); // Act & Assert Assert.Throws <ArgumentNullException>(() => sut.Verify((MethodInfo)null)); }
public void SutIsIdiomaticAssertion() { // Arrange var dummyComposer = new Fixture(); // Act var sut = new EqualityComparerEqualsSymmetricAssertion(dummyComposer); // Assert Assert.IsAssignableFrom <IdiomaticAssertion>(sut); }
public void ComposerIsCorrect() { // Arrange var expectedComposer = new Fixture(); var sut = new EqualityComparerEqualsSymmetricAssertion(expectedComposer); // Act ISpecimenBuilder result = sut.Builder; // Assert Assert.Equal(expectedComposer, result); }