public void DivideBy0() { try { DivideSample.Divide(10, 0); Assert.Fail("Should throw exception"); } catch (Exception ex) { Debug.WriteLine(ex.FullMessage()); Assert.IsInstanceOfType(ex, typeof(ApplicationException)); } }
public void DivideBy1() { Assert.AreEqual(10, DivideSample.Divide(10, 1)); }