public void SutDoesNotEqualSomeOtherObject()
        {
            // Arrange
            var dummyCtor = typeof(ConcreteType).GetConstructor(Type.EmptyTypes);
            var sut       = new ConstructorMethod(dummyCtor);
            // Act
            var result = sut.Equals(new object());

            // Assert
            Assert.False(result);
        }
        public void SutEqualsOtherSutWithSameCtor()
        {
            // Arrange
            var ctor  = typeof(ConcreteType).GetConstructor(Type.EmptyTypes);
            var sut   = new ConstructorMethod(ctor);
            var other = new ConstructorMethod(ctor);
            // Act
            var result = sut.Equals(other);

            // Assert
            Assert.True(result);
        }
        public void SutDoesNotEqualSomeOtherObject()
        {
            // Fixture setup
            var dummyCtor = typeof(ConcreteType).GetConstructor(Type.EmptyTypes);
            var sut       = new ConstructorMethod(dummyCtor);
            // Exercise system
            var result = sut.Equals(new object());

            // Verify outcome
            Assert.False(result);
            // Teardown
        }
        public void SutEqualsOtherSutWithSameCtor()
        {
            // Fixture setup
            var ctor  = typeof(ConcreteType).GetConstructor(Type.EmptyTypes);
            var sut   = new ConstructorMethod(ctor);
            var other = new ConstructorMethod(ctor);
            // Exercise system
            var result = sut.Equals(other);

            // Verify outcome
            Assert.True(result);
            // Teardown
        }
        public void SutDoesNotEqualOtherSutWithDifferentCtor()
        {
            // Arrange
            var ctor1 = typeof(ConcreteType).GetConstructor(Type.EmptyTypes);
            var sut   = new ConstructorMethod(ctor1);

            var ctor2 = typeof(PropertyHolder <string>).GetConstructor(Type.EmptyTypes);
            var other = new ConstructorMethod(ctor2);
            // Act
            var result = sut.Equals(other);

            // Assert
            Assert.False(result);
        }
        public void SutDoesNotEqualOtherSutWithDifferentCtor()
        {
            // Fixture setup
            var ctor1 = typeof(ConcreteType).GetConstructor(Type.EmptyTypes);
            var sut   = new ConstructorMethod(ctor1);

            var ctor2 = typeof(PropertyHolder <string>).GetConstructor(Type.EmptyTypes);
            var other = new ConstructorMethod(ctor2);
            // Exercise system
            var result = sut.Equals(other);

            // Verify outcome
            Assert.False(result);
            // Teardown
        }
 public void SutEqualsOtherSutWithSameCtor()
 {
     // Fixture setup
     var ctor = typeof(ConcreteType).GetConstructor(Type.EmptyTypes);
     var sut = new ConstructorMethod(ctor);
     var other = new ConstructorMethod(ctor);
     // Exercise system
     var result = sut.Equals(other);
     // Verify outcome
     Assert.True(result);
     // Teardown
 }
        public void SutDoesNotEqualOtherSutWithDifferentCtor()
        {
            // Fixture setup
            var ctor1 = typeof(ConcreteType).GetConstructor(Type.EmptyTypes);
            var sut = new ConstructorMethod(ctor1);

            var ctor2 = typeof(PropertyHolder<string>).GetConstructor(Type.EmptyTypes);
            var other = new ConstructorMethod(ctor2);
            // Exercise system
            var result = sut.Equals(other);
            // Verify outcome
            Assert.False(result);
            // Teardown
        }
 public void SutDoesNotEqualSomeOtherObject()
 {
     // Fixture setup
     var dummyCtor = typeof(ConcreteType).GetConstructor(Type.EmptyTypes);
     var sut = new ConstructorMethod(dummyCtor);
     // Exercise system
     var result = sut.Equals(new object());
     // Verify outcome
     Assert.False(result);
     // Teardown
 }