Ejemplo n.º 1
0
        public void RemoveNormalUniqueKeyword()
        {
            String expectedkeyword = "Testing";
            Paper existingpaper = new Paper();
            Author a = new Author();

            existingpaper.removeKeyword(expectedkeyword);
            List<String> keywords = existingpaper.listKeywords();

            bool removed = keywords.Contains(expectedkeyword);
            Assert.IsFalse(removed);
        }
Ejemplo n.º 2
0
        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);
        }