public void CheckInputForSafeResult_TestWithException() { var safetyinput = "5"; TestDelegate del = () => _sut.CheckInputForSafeResult(safetyinput); Assert.Throws <ScoreBoardException>(del); }