Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
        public void Equals_TwoIdenticalConfigurations_ResultIsTrue()
        {
            // Arrange
            var publishConfiguration1 = new PublishConfiguration { Name = "Some Repository", PublishLocation = "http://nuget.org/api/v2" };
            var publishConfiguration2 = new PublishConfiguration { Name = "Some Repository", PublishLocation = "http://nuget.org/api/v2" };

            // Act
            bool result = publishConfiguration1.Equals(publishConfiguration2);

            // Assert
            Assert.IsTrue(result);
        }
        public void Equals_SuppliedObjectIsOfOtherType_ResultIsFalse()
        {
            // Arrange
            var publishConfiguration1 = new PublishConfiguration { Name = "Some Repository", PublishLocation = "http://nuget.org/api/v2" };
            object publishConfiguration2 = new object();

            // Act
            bool result = publishConfiguration1.Equals(publishConfiguration2);

            // Assert
            Assert.IsFalse(result);
        }