Example #1
0
        public void SutDoesNotEqualAnonymousObject(object other)
        {
            var sut    = new TypeElement(this.GetType());
            var actual = sut.Equals(other);

            Assert.False(actual);
        }
Example #2
0
        public void SutDoesNotEqualDifferentInstanceOfSameType()
        {
            var sut   = new TypeElement(this.GetType());
            var other = new TypeElement(typeof(Version));

            var actual = sut.Equals(other);

            Assert.False(actual);
        }
Example #3
0
        public void SutEqualsOtherIdenticalInstance()
        {
            var t     = this.GetType();
            var sut   = new TypeElement(t);
            var other = new TypeElement(t);

            var actual = sut.Equals(other);

            Assert.True(actual);
        }
Example #4
0
        public void SutEqualsOtherIdenticalInstance()
        {
            var t = this.GetType();
            var sut = new TypeElement(t);
            var other = new TypeElement(t);

            var actual = sut.Equals(other);

            Assert.True(actual);
        }
Example #5
0
 public void SutDoesNotEqualAnonymousObject(object other)
 {
     var sut = new TypeElement(this.GetType());
     var actual = sut.Equals(other);
     Assert.False(actual);
 }
Example #6
0
        public void SutDoesNotEqualDifferentInstanceOfSameType()
        {
            var sut = new TypeElement(this.GetType());
            var other = new TypeElement(typeof(Version));

            var actual = sut.Equals(other);

            Assert.False(actual);
        }