示例#1
0
        public void AddScriptWithNonUniqueNameShouldFail()
        {
            var scriptsFromStore = _store.Scripts;

            Script newScript = new Script {
                Name = scriptsFromStore[0].Name
            };

            bool added = _store.AddScript(newScript);

            Assert.AreEqual(added, false);

        }
示例#2
0
 public bool AddScript(Script script)
 {
     return(_scriptStore.AddScript(script));
 }