コード例 #1
0
        public void TestSetReferences()
        {
            var builder       = new StepBuilder(parent: new ProcessBuilder(id: "p_1"), id: "123", name: "Start", description: "Start Step");
            var scriptBuilder = new ScriptBuilder <object>(builder);

            scriptBuilder.AddReferences("AssemblyOne", "AssemblyTwo");
            Assert.IsNotNull(scriptBuilder.References);
            Assert.AreEqual(2, scriptBuilder.References.Count);
            scriptBuilder.AddReferences("AssemblyThree");
            Assert.AreEqual(3, scriptBuilder.References.Count);
        }