Пример #1
0
 public void TestEqualityCheck() {
   VectorFont.KerningPair pair1 = new VectorFont.KerningPair('A', 'B');
   VectorFont.KerningPair pair2 = new VectorFont.KerningPair('A', 'B');
   VectorFont.KerningPair pair3 = new VectorFont.KerningPair('B', 'C');
   
   Assert.IsTrue(pair1.Equals(pair2));
   Assert.IsFalse(pair2.Equals(pair3));
 }
Пример #2
0
            public void TestEqualityCheck()
            {
                VectorFont.KerningPair pair1 = new VectorFont.KerningPair('A', 'B');
                VectorFont.KerningPair pair2 = new VectorFont.KerningPair('A', 'B');
                VectorFont.KerningPair pair3 = new VectorFont.KerningPair('B', 'C');

                Assert.IsTrue(pair1.Equals(pair2));
                Assert.IsFalse(pair2.Equals(pair3));
            }
Пример #3
0
 public void TestEqualityCheckAgainstIncompatibleType()
 {
     VectorFont.KerningPair pair = new VectorFont.KerningPair('A', 'B');
     Assert.IsFalse(pair.Equals(new object()));
 }
Пример #4
0
 public void TestEqualityCheckAgainstIncompatibleType() {
   VectorFont.KerningPair pair = new VectorFont.KerningPair('A', 'B');
   Assert.IsFalse(pair.Equals(new object()));
 }