Beispiel #1
0
        public void Equals_ToSelf_Equal()
        {
            // Arrange
            var target = new StringMatchRule("Name", StringMatchType.Suffix);

            // Act
            var result = target.Equals(target);

            // Assert
            Assert.IsTrue(result);
        }
Beispiel #2
0
        public void Equals_ToDifferentType_Unequal()
        {
            // Arrange
            var target1 = new StringMatchRule("Name", StringMatchType.Suffix);
            var target2 = new StringMatchRule("Name", StringMatchType.Prefix);

            // Act
            var result = target1.Equals(target2);

            // Assert
            Assert.IsFalse(result);
        }
Beispiel #3
0
        public void Equals_ToIdentical_Equal()
        {
            // Arrange
            var target1 = new StringMatchRule("Name", StringMatchType.Suffix);
            var target2 = new StringMatchRule("Name", StringMatchType.Suffix);

            // Act
            var result = target1.Equals(target2);

            // Assert
            Assert.IsTrue(result);
        }