public void DivideTest() { var ex = Assert.Throws <ArgumentException>(() => _fun.Divide(3)); Assert.That(ex.Message == "Parametr cannot be null"); }