Exemple #1
0
        public void EqualsShouldReturnFalseForAnInstanceWithDifferentRuleName([ManifestModel] ManifestValue value, Type aType)
        {
            var first  = new ManifestRuleIdentifier(value, aType, "One");
            var second = new ManifestRuleIdentifier(value, aType, "Two");

            Assert.That(first.Equals(second), Is.False);
        }
Exemple #2
0
        public void EqualsShouldReturnFalseForADifferentInstanceWithEqualPropertyValues([ManifestModel] ManifestValue value, Type aType, string aString)
        {
            var first  = new ManifestRuleIdentifier(value, aType, aString);
            var second = new ManifestRuleIdentifier(value, aType, aString);

            Assert.That(first.Equals(second), Is.True);
        }
Exemple #3
0
 public void EqualsShouldReturnTrueForTheSameInstance([ManifestModel] ManifestRuleIdentifier sut)
 {
     Assert.That(sut.Equals(sut), Is.True);
 }
Exemple #4
0
 public void EqualsShouldReturnFalseForAString([ManifestModel] ManifestRuleIdentifier sut, string aString)
 {
     Assert.That(sut.Equals(aString), Is.False);
 }