Exemplo n.º 1
0
 public void ConvertToBool_Throws_When_Input_Is_Invalid(string input)
 {
     var reader = new VnaAdjListReader();
     var ex = Assert.Throws<FormatException>(() => reader.ConvertToBool(input));
 }
Exemplo n.º 2
0
 public void ConvertToBool_Safely_Converts_VNA_Active_Strings_To_Boolean(string input, bool expectedResult)
 {
     var reader = new VnaAdjListReader();
     var result = reader.ConvertToBool(input);
     Assert.Equal(expectedResult, result);
 }