public void Error_Handled_Empty() { var sample = new Sample_34(); Expect(sample.Handled, Is.False); Expect(() => Parser.Run(new[] {"foo"}, sample), Throws.Exception); Expect(sample.Handled, Is.True); }
public void Error_Handled_Empty() { var sample = new Sample_34(); Assert.IsFalse(sample.Handled); try { Parser.Run(new[] { "foo" }, sample); Assert.Fail(); } catch { Assert.IsTrue(sample.Handled); } }