Beispiel #1
0
 public void CompareToTest()
 {
     CategoryItem target = new CategoryItem("Hello", CategoryItemType.String);
     CategoryItem other = new CategoryItem("GoodBye", CategoryItemType.String);
     int expected = "^Hello^".CompareTo("^GoodBye$");
     int actual;
     actual = target.CompareTo(other);
     Assert.AreEqual(expected, actual);
 }
Beispiel #2
0
        public void CompareToTest()
        {
            CategoryItem target   = new CategoryItem("Hello", CategoryItemType.String);
            CategoryItem other    = new CategoryItem("GoodBye", CategoryItemType.String);
            int          expected = "^Hello^".CompareTo("^GoodBye$");
            int          actual;

            actual = target.CompareTo(other);
            Assert.AreEqual(expected, actual);
        }