Esempio n. 1
0
        public void SutDoesNotEqualNullObject()
        {
            // Arrange
            var    sut   = new UriScheme();
            object other = null;
            // Act
            bool result = sut.Equals(other);

            // Assert
            Assert.False(result);
        }
Esempio n. 2
0
        public void SutEqualsOtherSutWhenBothSchemesAreDefault()
        {
            // Arrange
            var sut   = new UriScheme();
            var other = new UriScheme();
            // Act
            bool result = sut.Equals(other);

            // Assert
            Assert.True(result);
        }
Esempio n. 3
0
        public void SutDoesNotEqualOtherSutWhenSchemesDiffer()
        {
            // Arrange
            var sut   = new UriScheme("a");
            var other = new UriScheme("b");
            // Act
            bool result = sut.Equals(other);

            // Assert
            Assert.False(result);
        }
Esempio n. 4
0
        public void SutDoesNotEqualAnonymousObject()
        {
            // Arrange
            var sut             = new UriScheme();
            var anonymousObject = new object();
            // Act
            bool result = sut.Equals(anonymousObject);

            // Assert
            Assert.False(result);
        }
Esempio n. 5
0
        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
        }
Esempio n. 6
0
        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
        }
Esempio n. 7
0
        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
        }
Esempio n. 8
0
        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
        }
Esempio n. 9
0
        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);
        }
Esempio n. 10
0
        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
        }
Esempio n. 11
0
 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
 }
Esempio n. 12
0
 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
 }
Esempio n. 13
0
 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
 }
Esempio n. 14
0
 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
 }
Esempio n. 15
0
 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
 }