Beispiel #1
0
        public void CreateNewEmptyPuzzleObject()
        {
            var emptyPuzzle = new EmptyPuzzle();

            Assert.IsInstanceOfType(emptyPuzzle, typeof(EmptyPuzzle));
            Assert.IsInstanceOfType(emptyPuzzle, typeof(Puzzle));
        }
Beispiel #2
0
        public void CreateAnEmptyPuzzleFromGenerator()
        {
            var emptyPuzzle = new EmptyPuzzle();

            Assert.IsInstanceOfType(emptyPuzzle, typeof(EmptyPuzzle));
            Assert.IsInstanceOfType(emptyPuzzle, typeof(Puzzle));
            emptyPuzzle.CreatePuzzle();
            Assert.IsNotNull(emptyPuzzle.PuzzleArray);
            BuildLogString(emptyPuzzle.PuzzleArray);
            WriteLog();
            Assert.IsTrue(_log.Contains("0"));
        }