public void SutDoesNotEqualNullObject() { // Arrange var sut = new UriScheme(); object other = null; // Act bool result = sut.Equals(other); // Assert Assert.False(result); }
public void SutEqualsOtherSutWhenBothSchemesAreDefault() { // Arrange var sut = new UriScheme(); var other = new UriScheme(); // Act bool result = sut.Equals(other); // Assert Assert.True(result); }
public void SutDoesNotEqualOtherSutWhenSchemesDiffer() { // Arrange var sut = new UriScheme("a"); var other = new UriScheme("b"); // Act bool result = sut.Equals(other); // Assert Assert.False(result); }
public void SutDoesNotEqualAnonymousObject() { // Arrange var sut = new UriScheme(); var anonymousObject = new object(); // Act bool result = sut.Equals(anonymousObject); // Assert Assert.False(result); }
public void SutDoesNotEqualNullObject() { // Fixture setup var sut = new UriScheme(); object other = null; // Exercise system bool result = sut.Equals(other); // Verify outcome Assert.False(result); // Teardown }
public void SutEqualsOtherSutWhenBothSchemesAreDefault() { // Fixture setup var sut = new UriScheme(); var other = new UriScheme(); // Exercise system bool result = sut.Equals(other); // Verify outcome Assert.True(result); // Teardown }
public void SutDoesNotEqualOtherSutWhenSchemesDiffer() { // Fixture setup var sut = new UriScheme("a"); var other = new UriScheme("b"); // Exercise system bool result = sut.Equals(other); // Verify outcome Assert.False(result); // Teardown }
public void SutDoesNotEqualAnonymousObject() { // Fixture setup var sut = new UriScheme(); var anonymousObject = new object(); // Exercise system bool result = sut.Equals(anonymousObject); // Verify outcome Assert.False(result); // Teardown }
public void SutEqualsOtherSutWhenSchemesAreEqual() { // Arrange var scheme = "https"; var sut = new UriScheme(scheme); var other = new UriScheme(scheme); // Act bool result = sut.Equals(other); // Assert Assert.True(result); }
public void SutEqualsOtherObjectWhenSchemesAreEqual() { // Fixture setup var scheme = "https"; var sut = new UriScheme(scheme); object other = new UriScheme(scheme); // Exercise system bool result = sut.Equals(other); // Verify outcome Assert.True(result); // Teardown }
public void SutEqualsOtherSutWhenSchemesAreEqual() { // Fixture setup var scheme = "https"; var sut = new UriScheme(scheme); var other = new UriScheme(scheme); // Exercise system bool result = sut.Equals(other); // Verify outcome Assert.True(result); // Teardown }
public void SutEqualsOtherObjectWhenBothSchemesAreDefault() { // Fixture setup var sut = new UriScheme(); object other = new UriScheme(); // Exercise system bool result = sut.Equals(other); // Verify outcome Assert.True(result); // Teardown }