Exemple #1
0
        public void Result()
        {
            string[] hints = _game.Run();
            Assert.AreEqual(@"Moving from 0 to 10: colder.
Moving from 10 to 10: same.
Moving from 10 to 7: warmer.
Moving from 7 to 3: found it!", String.Join(Environment.NewLine, hints));
        }
Exemple #2
0
        public void Result()
        {
            string[] hints = _game.Run();
            Assert.AreEqual(@"Moving from 0 to 5: warmer.
Moving from 5 to -3: colder.
Moving from -3 to 1: warmer.
Moving from 1 to 4: warmer.
Moving from 4 to 6: warmer.
Moving from 6 to 7: warmer.
Moving from 7 to 8: warmer.
Moving from 8 to 9: warmer.
Moving from 9 to 12: found it!", String.Join(Environment.NewLine, hints));
        }
 public void Should_Joey_Only_Move_Once()
 {
     string[] hints = _game.Run();
     Assert.AreEqual(1, hints.Length);
 }
 public void Should_Joey_Have_Three_Steps()
 {
     string[] hints = _game.Run();
     Assert.AreEqual(3, hints.Length);
 }