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); }
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); }