Esempio n. 1
0
        public void TestSetImports()
        {
            var builder       = new StepBuilder(parent: new ProcessBuilder(id: "p_1"), id: "123", name: "Start", description: "Start Step");
            var scriptBuilder = new ScriptBuilder <object>(builder);

            scriptBuilder.AddImportds("System.Net", "Newton.Json");
            Assert.IsNotNull(scriptBuilder.Imports);
            Assert.AreEqual(2, scriptBuilder.Imports.Count);
            scriptBuilder.AddImportds("System.Linq");
            Assert.AreEqual(3, scriptBuilder.Imports.Count);
        }