public void IsFirstExceptionResultAddedToCollection() { ExceptionResult ExceptionResultExpected; int ExceptionIdResult = 0; CalculatorExceptionController.GenerateExceptions(); ExceptionResultExpected = CalculatorExceptionController.GetException(0); Assert.AreEqual(ExceptionResultExpected.ExceptionId, ExceptionIdResult); }
public ExceptionResult GetException(int ExceptionId) { ExceptionResult = ExceptionController.GetException(ExceptionId); return(ExceptionResult); }