public void Test_Persistance()
        {
            HintGenerator hints = new HintGenerator(5, 5, framework.GetSolution(5, 5));
            List <Hint>   listA = hints.TestGenerateHintList();

            Debug_HintList.RemoveAHint(new List <Hint> (listA));
            Assert.AreEqual(CalculateHintNumber(5, 5), listA.Count);
        }
示例#2
0
    public void Test_3x4()
    {
        solution = framework.GetSolution(3, 4);

        HintGenerator hg = new HintGenerator(3, 4, solution);

        hintList = hg.TestGenerateHintList();

        foreach (Hint hint in hintList)
        {
            UnityEngine.Debug.Log(hint.ToString());
        }

        Assert.True(true);
    }
        public void Test_5x4HintList()
        {
            HintGenerator hints = new HintGenerator(5, 4, framework.GetSolution(5, 4));

            Assert.AreEqual(CalculateHintNumber(5, 4), hints.TestGenerateHintList().Count);
        }
        public void Test_3x3HintList()
        {
            HintGenerator hints = new HintGenerator(3, 3, framework.GetSolution(3, 3));

            Assert.AreEqual(CalculateHintNumber(3, 3), hints.TestGenerateHintList().Count);                // 33
        }