public void CalculateTest(string name, Type type) { var calculator = OneArgumentFactory.CreateCalculate(name); Assert.IsInstanceOf(type, calculator); }
public void MyCalculateTest() { IOneArgumentCalculator calculator = OneArgumentFactory.CreateCalculate("Log2x"); Assert.Throws <Exception>(() => calculator.Calculate(-3)); }