Esempio n. 1
0
        public void Equals_OtherVersion_False()
        {
            // Arrange
            var unitUnderTest = new PackageDetails(ValidName, ValidVersion);
            var other         = new PackageDetails(ValidName, "Beta-2");

            // Act
            var result = unitUnderTest.Equals(other);

            // Assert
            Assert.IsFalse(result);
        }
Esempio n. 2
0
        public void Equals_SameNameAndVersion_True()
        {
            // Arrange
            var unitUnderTest = new PackageDetails(ValidName, ValidVersion);
            var other         = new PackageDetails(ValidName, ValidVersion);

            // Act
            var result = unitUnderTest.Equals(other);

            // Assert
            Assert.IsTrue(result);
        }