예제 #1
0
        public void CalculateTest(string name, Type type)
        {
            var calculator = OneArgumentFactory.CreateCalculate(name);

            Assert.IsInstanceOf(type, calculator);
        }
예제 #2
0
        public void MyCalculateTest()
        {
            IOneArgumentCalculator calculator = OneArgumentFactory.CreateCalculate("Log2x");

            Assert.Throws <Exception>(() => calculator.Calculate(-3));
        }