Exemple #1
0
		public void Run()
		{
			Script S = new Script();

			S.Options.DebugPrint = Print;

			S.Options.UseLuaErrorLocations = true;

#if PCL
	#if EMBEDTEST
			S.Options.ScriptLoader = new EmbeddedResourcesScriptLoader(Assembly.GetExecutingAssembly());
	#else
			S.Options.ScriptLoader = new TestsScriptLoader();
	#endif
#endif

			S.Globals.Set("arg", DynValue.NewTable(S));

			((ScriptLoaderBase)S.Options.ScriptLoader).ModulePaths = new string[] { "TestMore/Modules/?", "TestMore/Modules/?.lua" };

			S.DoFile(m_File);
		}