예제 #1
0
 public void ShoulReturnSuccessWhenBetasoideCalculatorIsValid()
 {
     using (WeatherCalculator _weatherCalculator = new WeatherCalculator())
     {
         //[0,3,6,9,12]
         var betasoideVelocity = 3;
         var index             = 4;
         var position          = _weatherCalculator.CalculePosition(index, betasoideVelocity);
         Assert.Equal(12, position);
     }
 }
예제 #2
0
 public void ShouldReturnSuccessWhenFerengiCalculatorIsValid()
 {
     using (WeatherCalculator _weatherCalculator = new WeatherCalculator())
     {
         //[0,1,2,3,4,5]
         var ferengiVelocity = 1;
         var index           = 3;
         var position        = _weatherCalculator.CalculePosition(index, ferengiVelocity);
         Assert.Equal(3, position);
     }
 }
예제 #3
0
 public void ShouldReturnSuccessWhenVolcanoCalculatorIsValid()
 {
     using (WeatherCalculator _weatherCalculator = new WeatherCalculator())
     {
         //[0,5,10,15,20,25]
         var volcanoVelocity = 5;
         var index           = 5;
         var position        = _weatherCalculator.CalculePosition(index, volcanoVelocity);
         Assert.Equal(25, position);
     }
 }