Пример #1
0
        public static void Bad(string input)
        {
            Action act = () => BasicStatement.FromString(input);

            act.Should().Throw <FormatException>("[{0}]", input).WithMessage("*'" + input + "'*").WithInnerException <Exception>();
        }
Пример #2
0
 public static void Good(string input, string output)
 {
     BasicStatement.FromString(input).ToString().Should().Be(output, "[{0}]", input);
 }