IronRuby.Tests.Tests.Load1 C# (CSharp) Method

Load1() public method

public Load1 ( ) : void
return void
        public void Load1() {
            if (_driver.PartialTrust) return;

            try {
                string temp = _driver.MakeTempDir();
                Context.Loader.SetLoadPaths(new[] { temp });

                File.WriteAllText(Path.Combine(temp, "a.rb"), @"C = 123");
                
                AssertOutput(delegate() {
                    CompilerTest(@"
puts(load('a.rb', true))
puts C rescue puts 'error'
");
                }, @"
true
error
");
            } finally {
                File.Delete("a.rb");
            }
        }
Tests