예제 #1
0
        public void Function_ContainsFunctions_ResultMustBeIsFalse()
        {
            var storage = new FunctionsStorage();

            storage.AddFunction("linear", new LinearFunction(2.3, 5));
            var result = storage.ContainsFunctions("Linear");

            Assert.IsFalse(result);
        }
예제 #2
0
        public void Function_DeleteFunction_ResultMustBeIsTrue()
        {
            var storage = new FunctionsStorage();

            storage.AddFunction("Cos", new CosineFunction());
            storage.DeleteFunction("Cos");
            var result = storage.ContainsFunctions("Cos");

            Assert.IsFalse(result);
        }