Exemple #1
0
 private void AssertTypesAreDifferent(GBaseAttributeType typeA,
                                      GBaseAttributeType typeB)
 {
     Assert.IsFalse(typeA.Equals(typeB), "equals");
     Assert.IsTrue(typeA != typeB, "operator !=");
     Assert.IsFalse(typeA == typeB, "operator ==");
 }
Exemple #2
0
 private void AssertTypesAreSame(GBaseAttributeType typeA,
                                 GBaseAttributeType typeB)
 {
     Assert.IsTrue(typeA.Equals(typeB), "equals");
     Assert.IsFalse(typeA != typeB, "operaton !=");
     Assert.IsTrue(typeA == typeB, "operator ==");
     Assert.AreEqual(typeA.GetHashCode(), typeB.GetHashCode(), "HashCode");
 }