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