示例#1
0
 public void GIVEN_anInvalidLine_WithManyError_WHEN_parsed_THEN_itShouldReturn_AllTheErrors()
 {
     CallLine.Of("07/1xx20 11:00    401 05 <I>234               00:bla 2 EU00000.00               ").ShouldBeFail(
         errors =>
     {
         Assert.Equal(2, errors.Count);
     });
 }
示例#2
0
 public void GIVEN_aDataLine_WHEN_parsed_THEN_itShouldBePossible_ToParse_AllData(string inputLine, ICentralinoLine expectedLine)
 {
     CallLine.Of(inputLine).ShouldBeSuccess(line => Assert.Equal(expectedLine, line));
 }
示例#3
0
 public void GIVEN_invalidFormats_WHEN_parsed_THEN_itShouldSignal_Errors(string inputLine)
 {
     CallLine.Of(inputLine).ShouldBeFail();
 }