示例#1
0
 public void GetHashCodeTest()
 {
     CategoryItem target = new CategoryItem("Hello", CategoryItemType.String);
     int expected = "^Hello$".GetHashCode();
     int actual = target.GetHashCode();
     Assert.AreEqual(expected, actual);
 }
示例#2
0
        public void GetHashCodeTest()
        {
            CategoryItem target   = new CategoryItem("Hello", CategoryItemType.String);
            int          expected = "^Hello$".GetHashCode();
            int          actual   = target.GetHashCode();

            Assert.AreEqual(expected, actual);
        }