Exemplo n.º 1
0
        public void ShouldReturnCorrectFinderLogLength()
        {
            Core.TreasureFinder  treasureFinder = new Core.TreasureFinder();
            IEnumerable <string> finderLog      = treasureFinder.Solve(cells);

            Assert.True(finderLog.Count() == 19);
        }
Exemplo n.º 2
0
        public void ShouldReturnFinderLogWithContents()
        {
            Core.TreasureFinder  treasureFinder = new Core.TreasureFinder();
            IEnumerable <string> finderLog      = treasureFinder.Solve(cells);

            Assert.True(finderLog.Count() > 0);
        }
Exemplo n.º 3
0
        public void ShouldReturnCorrectAnswer()
        {
            Core.TreasureFinder  treasureFinder = new Core.TreasureFinder();
            IEnumerable <string> finderLog      = treasureFinder.Solve(cells);

            Assert.True(finderLog.Last() == "Coordinate in 5, 2: Value = 52");
        }
Exemplo n.º 4
0
        public void ShouldNotReturnNull()
        {
            Core.TreasureFinder  treasureFinder = new Core.TreasureFinder();
            IEnumerable <string> finderLog      = treasureFinder.Solve(cells);

            Assert.True(finderLog != null);
        }