Beispiel #1
0
        public void SutDoesNotEqualAnonymousObject(object other)
        {
            var sut    = new ParameterInfoElement(TypeWithParameters.Parameter);
            var actual = sut.Equals(other);

            Assert.False(actual);
        }
Beispiel #2
0
        public void SutEqualsOtherIdenticalInstance()
        {
            var par   = TypeWithParameters.Parameter;
            var sut   = new ParameterInfoElement(par);
            var other = new ParameterInfoElement(par);

            var actual = sut.Equals(other);

            Assert.True(actual);
        }
Beispiel #3
0
        public void SutDoesNotEqualDifferentInstanceOfSameType()
        {
            var sut            = new ParameterInfoElement(TypeWithParameters.Parameter);
            var otherParameter = TypeWithParameters.OtherParameter;
            var other          = new ParameterInfoElement(otherParameter);

            var actual = sut.Equals(other);

            Assert.False(actual);
        }
        public void SutEqualsOtherIdenticalInstance()
        {
            var par = TypeWithParameters.Parameter;
            var sut = new ParameterInfoElement(par);
            var other = new ParameterInfoElement(par);

            var actual = sut.Equals(other);

            Assert.True(actual);
        }
 public void SutDoesNotEqualAnonymousObject(object other)
 {
     var sut = new ParameterInfoElement(TypeWithParameters.Parameter);
     var actual = sut.Equals(other);
     Assert.False(actual);
 }
        public void SutDoesNotEqualDifferentInstanceOfSameType()
        {
            var sut = new ParameterInfoElement(TypeWithParameters.Parameter);
            var otherParameter = TypeWithParameters.OtherParameter;
            var other = new ParameterInfoElement(otherParameter);

            var actual = sut.Equals(other);

            Assert.False(actual);
        }