示例#1
0
        public void AddImportsTest()
        {
            var sb = new ScriptBuilder();

            sb.AddImports("System.Threading");
            sb.AddImports("System.Text", "System.IO");

            var(_, diagnostics) = sb.Build(CancellationToken.None);

            Assert.Empty(diagnostics);
        }
示例#2
0
        public void AddAssembliesTest()
        {
            var sb = new ScriptBuilder();

            sb.AddAssemblies("System.Core");
            sb.AddImports("System.Linq");

            var(_, diagnostic) = sb.Build(CancellationToken.None);
            Assert.Empty(diagnostic);
        }