Пример #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);
 }