예제 #1
0
        public void SutDoesNotEqualAnonymousObject(object other)
        {
            var sut    = new PropertyInfoElement(TypeWithProperties.Property);
            var actual = sut.Equals(other);

            Assert.False(actual);
        }
예제 #2
0
        public void SutEqualsOtherIdenticalInstance()
        {
            var pi    = TypeWithProperties.Property;
            var sut   = new PropertyInfoElement(pi);
            var other = new PropertyInfoElement(pi);

            var actual = sut.Equals(other);

            Assert.True(actual);
        }
예제 #3
0
        public void SutDoesNotEqualDifferentInstanceOfSameType()
        {
            var sut           = new PropertyInfoElement(TypeWithProperties.Property);
            var otherProperty = TypeWithProperties.OtherProperty;
            var other         = new PropertyInfoElement(otherProperty);

            var actual = sut.Equals(other);

            Assert.False(actual);
        }
예제 #4
0
        public void SutEqualsOtherIdenticalInstance()
        {
            var pi = TypeWithProperties.Property;
            var sut = new PropertyInfoElement(pi);
            var other = new PropertyInfoElement(pi);

            var actual = sut.Equals(other);

            Assert.True(actual);
        }
        public void SutDoesNotEqualDifferentInstanceOfSameType()
        {
            var sut = new PropertyInfoElement(TypeWithProperty.Property);
            var otherProperty = TypeWithProperty.OtherProperty;
            var other = new PropertyInfoElement(otherProperty);

            var actual = sut.Equals(other);

            Assert.False(actual);
        }
 public void SutDoesNotEqualAnonymousObject(object other)
 {
     var sut = new PropertyInfoElement(TypeWithProperty.Property);
     var actual = sut.Equals(other);
     Assert.False(actual);
 }