public void have_an_integer_when_second_line_is_read() { int nbrExchangeRates = ConsoleParser.ReadSecondLine("6"); nbrExchangeRates.ShouldSatisfyAllConditions ( () => nbrExchangeRates.ShouldBeOfType(typeof(Int32)), () => nbrExchangeRates.ShouldBeGreaterThan(0) ); }
public void return_minus_1_when_second_line_is_read_and_the_number_is_not_an_integer() { int nbrExchangeRates = ConsoleParser.ReadSecondLine("a"); nbrExchangeRates.ShouldBe(-1); }