Ejemplo n.º 1
0
        public void IsCircleFull()
        {
            WordTargetLayout layout = new WordTargetLayout(new List <string> {
                "VARIABLE", "VALUE", "VAGUE", "UNCLEAR", "NUCLEAR", "CORE", "CORN", "COIN", "JOIN", "STATE"
            });

            layout.AssignWord("VALUE", 3);
            layout.AssignWord("VAGUE", 3);
            layout.AssignWord("UNCLEAR", 3);
            layout.AssignWord("NUCLEAR", 3);
            Assert.AreEqual(false, layout.IsCircleFull(3));
            layout.AssignWord("CORE", 3);
            layout.AssignWord("CORN", 3);
            layout.AssignWord("COIN", 3);
            layout.AssignWord("JOIN", 3);
            Assert.ThrowsException <System.Exception>(() => layout.IsCircleFull(1));
            Assert.ThrowsException <System.Exception>(() => layout.IsCircleFull(6));
            Assert.AreEqual(true, layout.IsCircleFull(3));
        }