コード例 #1
0
 public void IfTwoClassesWithPackage2IsBeforePackage1GiveCompareToOf1()
 {
     var package1 = new Package();
     var package2 = new Package();
     package1.Name = "test2";
     package2.Name = "test1";
     Assert.AreEqual(1, package1.CompareTo(package2));
 }
コード例 #2
0
 public void IfTwoClassesWithTheSameNameGiveCompareToOf0()
 {
     var package1 = new Package();
     var package2 = new Package();
     package1.Name = "test";
     package2.Name = "test";
     Assert.AreEqual(0,package1.CompareTo(package2));
 }