public void AddNormalUniqueKeyword() { String expectedkeyword = "Testing"; Paper existingpaper = new Paper(); Author a = new Author(); existingpaper.addKeyword(expectedkeyword); List<String> keywords = existingpaper.listKeywords(); List<String> authorkeywords = a.listKeywords(); String actual = keywords.Find(s => s == expectedkeyword); Assert.AreEqual(actual, expectedkeyword); actual = authorkeywords.Find(s => s == expectedkeyword); Assert.AreEqual(actual, expectedkeyword); }
public void UnicodeAuthor() { //The input author is unicode symbols String unicodeAuthor = "╙φ¼╒≥│Θ╛╞"; Author a = new Author(unicodeAuthor); List<String> keywords = a.listKeywords(unicodeAuthor); }