public void DistanceInText() { //Arrange GetCurrentSpeed cal = new GetCurrentSpeed(); //Actual var actual = cal.SpeedCalc("trettiofem"); //Assert }
public void SpeedCalcTest() { //Arrange GetCurrentSpeed cal = new GetCurrentSpeed(); //Actual //Assert }
public void GetSpeedNoInput() { GetCurrentSpeed getCurrentSpeed = new GetCurrentSpeed(); var expected = getCurrentSpeed.GetSpeed("0"); var actual = 0; Assert.AreEqual(expected, actual); }
public void GetSpeedNegativeNumber() { GetCurrentSpeed getCurrentSpeed = new GetCurrentSpeed(); var expected = getCurrentSpeed.GetSpeed("-6000"); var actual = -100; Assert.AreEqual(expected, actual); }
public void GetCurrentSpeed_BigValue() { GetCurrentSpeed getCurrentSpeed = new GetCurrentSpeed(); var actual = getCurrentSpeed.Speed("5000", "50"); var expected = 100; Assert.AreEqual(expected, actual); }
public void GetCurrentSpeed_PositiveValue() { GetCurrentSpeed getCurrentSpeed = new GetCurrentSpeed(); var actual = getCurrentSpeed.Speed("5", "2"); var expected = 2; Assert.AreEqual(expected, actual); }
public void SpeedCalcWithSpace() { //Arrange GetCurrentSpeed cal = new GetCurrentSpeed(); //Act var actual = cal.SpeedCalc(" 5"); var expected = 45; //Assert Assert.AreEqual(expected, actual, "Space + number test Correct"); }
public void TestMethod1() { // Arrange-Act-Assert GetCurrentSpeed p = new GetCurrentSpeed(); }
public void GetCurrentSpeed_Exception() { GetCurrentSpeed getCurrentSpeed = new GetCurrentSpeed(); getCurrentSpeed.Speed("0", "0"); }