예제 #1
0
        public void Delete_DeleteExistingFunction_FunctionWillBeDeleted()
        {
            var fs = new FunctionStorage();

            fs.Add("Name", new Cos());
            fs.Delete("Name");
            fs.Add("Name", new Cos());
        }
예제 #2
0
        public void Delete_DeleteNonExistentFunction_ExceptionReturned()
        {
            var fs = new FunctionStorage();

            Assert.Catch <Exception>(() => fs.Delete("Name"));
        }