private static void checkToRomanThrowArgumentException(int arabic) { var converter = new ARConverter(); converter.Invoking(obj => { var unused = obj.convertFrom(arabic); }) .Should() .Throw <ArgumentException>(); }
private static void checkToArabicThrowArgumentException(string roman) { var converter = new ARConverter(); converter.Invoking(obj => { var unused = obj.convertTo(roman); }) .Should() .Throw <ArgumentException>(); }