public void That_Get_Returns7ForVelocity10AndDegrees45() { // given a calculator IDegreeCalculator degreeCalculator = new DegreeCalculator(); IYCoordinateCalculator target = new YCoordinateCalculator(degreeCalculator); // when I enter velocity, 10; degrees 45 int actual = target.Get(velocity: 10M, angle: 45M); // assert - result is 7 Assert.AreEqual(7, actual); }
public void That_Get_Returns0ForVelocity20AndDegrees1() { // given a calculator IDegreeCalculator degreeCalculator = new DegreeCalculator(); IYCoordinateCalculator target = new YCoordinateCalculator(degreeCalculator); // when I enter velocity, 20; degrees 1 int actual = target.Get(velocity: 20M, angle: 1M); // assert - result is 0 Assert.AreEqual(0, actual); }