示例#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);
 }
示例#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);
        }