public void Should_CalculateStarshipStops_Not_Throw_Exception_If_Input_Is_Null_Or_Zero() { List <StarshipModel> list = null; StarshipBusiness.CalculateStarshipStops(ref list, 0); Assert.Pass("OK for CalculateStarshipStops Null And Zero Values test"); }
public void Should_CalculateStarshipStops_Greather_Than_Zero_If_Input_Is_Valid2() { StarshipBusiness.CalculateStarshipStops(ref _starshipValidList, 1000000); _starshipValidList.ForEach(x => Assert.IsTrue(x.stops > 0)); Assert.Pass("OK for CalculateStarshipStops valid Starshiplist test"); }
public void Should_CalculateStarshipStops_Not_Throw_Exception_If_Input_Is_Invalid() { StarshipBusiness.CalculateStarshipStops(ref _starshipInvalidList, 0); _starshipInvalidList.ForEach(x => Assert.AreEqual(x.stops, 0)); Assert.Pass("OK for CalculateStarshipStops Invalid Starshiplist test"); }