Example #1
0
        public void Action(int x1, int x2, int alt1, int alt2)
        {
            _track1.X        = x1;
            _track1.Altitude = alt1;
            _track2.X        = x2;
            _track2.Altitude = alt2;

            _calcDistance.CalculateDistance1D(x1, x2).Returns(300);
            _calcDistance.CalculateDistance2D(x1, x2, alt1, alt2).Returns(400);
        }
Example #2
0
 public void CalcDistance1D_returnsCorrect_Value(int a, int b, int value)
 {
     Assert.AreEqual(value, _uut.CalculateDistance1D(a, b));
 }