public void SimpleTest(double firstarg, double expected) { Ctg calc = new Ctg(); double result = calc.Calc(firstarg); Assert.AreEqual(expected, result, 0.0000001); }
public void TgExceptionTest() { Ctg calc = new Ctg(); Assert.Throws <Exception>(() => calc.Calc(0)); }