public static void Bad(string input) { Action act = () => BasicStatement.FromString(input); act.Should().Throw <FormatException>("[{0}]", input).WithMessage("*'" + input + "'*").WithInnerException <Exception>(); }
public static void Good(string input, string output) { BasicStatement.FromString(input).ToString().Should().Be(output, "[{0}]", input); }