Exemplo n.º 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));
 }
Exemplo n.º 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));
            }
Exemplo n.º 3
0
 public void TestEqualityCheckAgainstIncompatibleType()
 {
     VectorFont.KerningPair pair = new VectorFont.KerningPair('A', 'B');
     Assert.IsFalse(pair.Equals(new object()));
 }
Exemplo n.º 4
0
 public void TestEqualityCheckAgainstIncompatibleType() {
   VectorFont.KerningPair pair = new VectorFont.KerningPair('A', 'B');
   Assert.IsFalse(pair.Equals(new object()));
 }