public void ConvertRouteAdapter_PassedCorrectFormatInput_ShouldReturnRouteObject(string routeStr) { var result = InputAdapter.ConvertRouteAdapter(routeStr); Assert.That(result, Is.TypeOf(typeof(Route))); Assert.That(result.CostToAirline, Is.Not.Null); Assert.That(result.Origin, Is.Not.Null); Assert.That(result.Destination, Is.Not.Null); Assert.That(result.TicketPrice, Is.Not.Null); }
public void ConvertRouteAdapter_PassedWrongFormatInput_ShouldReturnNull(string routeStr) { var result = InputAdapter.ConvertRouteAdapter(routeStr); Assert.That(result, Is.Null); }