Пример #1
0
        public void GetNextWord()
        {
            WordTargetLayout layout = new WordTargetLayout(new List <string> {
                "VARIABLE", "VALUE", "VAGUE", "UNCLEAR", "STATE"
            });

            Assert.AreEqual("VALUE", layout.GetNextWord("VARIABLE"));
            Assert.AreEqual("VAGUE", layout.GetNextWord("VALUE"));
            Assert.AreEqual(null, layout.GetNextWord("STATE"));
            Assert.ThrowsException <System.Exception>(() => layout.GetNextWord("NOTTHERE"));
        }