public void ProcessTest() { for (int index = 1; index < 101; index++) { var result = _baseEvent.Process(index); if (Convert.ToInt32(result) != index) { Assert.Fail(); } } }
public void ProcessTestNegativeNumber() { try { _baseEvent?.Process(-1); Assert.Fail(); } catch (Exception ex) { if (ex.GetType() != typeof(ArgumentException)) { Assert.Fail(); } } }