private void exceptionWrongParametersForFixture(PaintParameter p) { Exception actualException = Record.Exception(() => PaintFill(_fixture.screen.screenFilledUp, p.coordinates, p.newColor)); Assert.IsType <ArgumentException>(actualException); }
private void exceptionWrongParameters(PaintParameter p) { Exception actualException = Record.Exception(() => PaintFill(p.screen, p.coordinates, p.newColor)); Assert.IsType <ArgumentException>(actualException); }