public void CutTest() { ReadFile dictionary; dictionary = new ReadFile(); const string STRING = "ABCD>>>哈哈哈"; const string STR = "ABCD"; const string STR1 = "哈哈哈"; dictionary.Cut(STRING); Assert.AreEqual(dictionary.GetElements().Last <Word>()._english, STR); Assert.AreEqual(dictionary.GetElements().Last <Word>()._chinese, STR1); }