public void IsNotWithinAllowedDifference()
 {
     Assert.False(TrainGame.IsWithinAllowedDifference(6, 5));
 }
        public void MiniumRandomNumber()
        {
            TrainGame game = new TrainGame();

            Assert.True(game.GenerateRandomNumber(10, 10) >= 10);
        }
 public void IsWithinAllowedDifference()
 {
     Assert.True(TrainGame.IsWithinAllowedDifference(5, 5));
 }
 public void CarDurationTest()
 {
     Assert.Equal(1, TrainGame.CalculateCarJourneyDuration(30, 1, 15));
 }
 public void IsInputYesWhenNotY()
 {
     Assert.False(TrainGame.IsInputYes("a"));
 }
 public void IsInputYesWhenY()
 {
     Assert.True(TrainGame.IsInputYes("y"));
 }
        public void MaximumRandomNumber()
        {
            TrainGame game = new TrainGame();

            Assert.True(game.GenerateRandomNumber(10, 10) <= 110);
        }