示例#1
0
        public void SutDoesNotEqualAnonymousObject(object other)
        {
            var sut    = new MethodInfoElement(TypeWithMethods.Method);
            var actual = sut.Equals(other);

            Assert.False(actual);
        }
        public void SutEqualsOtherIdenticalInstance()
        {
            var mi = TypeWithMethods.Method;
            var sut = new MethodInfoElement(mi);
            var other = new MethodInfoElement(mi);

            var actual = sut.Equals(other);

            Assert.True(actual);
        }
示例#3
0
        public void SutEqualsOtherIdenticalInstance()
        {
            var mi    = TypeWithMethods.Method;
            var sut   = new MethodInfoElement(mi);
            var other = new MethodInfoElement(mi);

            var actual = sut.Equals(other);

            Assert.True(actual);
        }
示例#4
0
        public void SutDoesNotEqualDifferentInstanceOfSameType()
        {
            var sut         = new MethodInfoElement(TypeWithMethods.Method);
            var otherMethod = this.GetType().GetMethods()[0];
            var other       = new MethodInfoElement(otherMethod);

            var actual = sut.Equals(other);

            Assert.False(actual);
        }
 public void SutDoesNotEqualAnonymousObject(object other)
 {
     var sut = new MethodInfoElement(TypeWithMethods.Method);
     var actual = sut.Equals(other);
     Assert.False(actual);
 }
        public void SutDoesNotEqualDifferentInstanceOfSameType()
        {
            var sut = new MethodInfoElement(TypeWithMethods.Method);
            var otherMethod = this.GetType().GetMethods()[0];
            var other = new MethodInfoElement(otherMethod);

            var actual = sut.Equals(other);

            Assert.False(actual);
        }