void DoTests()
        {
            m_Ctx.Post(o => textView.Text = "", null);

            MoonSharp.Interpreter.Tests.TestRunner tr = new MoonSharp.Interpreter.Tests.TestRunner(Log);
            tr.Test();
        }
Beispiel #2
0
        void DoTests()
        {
            textView.Post(() => textView.Text = "");

            MoonSharp.Interpreter.Tests.TestRunner tr = new MoonSharp.Interpreter.Tests.TestRunner(Log);
            tr.Test();
        }
Beispiel #3
0
		void DoTests()
		{
			textView.Post (() => textView.Text = "");

			MoonSharp.Interpreter.Tests.TestRunner tr = new MoonSharp.Interpreter.Tests.TestRunner(Log);
			tr.Test();
		}
Beispiel #4
0
		void DoTests()
		{
			m_Ctx.Post(o => textView.Text = "", null);

			MoonSharp.Interpreter.Tests.TestRunner tr = new MoonSharp.Interpreter.Tests.TestRunner(Log);
			tr.Test();
		}
    IEnumerator DoTests()
    {
        SKIPLIST.AddRange(HARDWIRE_SKIPLIST);
        UserData.RegistrationPolicy = new HardwireAndLogPolicy();

        Type[] testFixtures = new Type[] {
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.BinaryDumpTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.ClosureTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.CollectionsBaseGenRegisteredTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.CollectionsBaseInterfGenRegisteredTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.CollectionsRegisteredTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.ConfigPropertyAssignerTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.CoroutineTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.DynamicTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.ErrorHandlingTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.GotoTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.JsonSerializationTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.LuaTestSuiteExtract),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.MetatableTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.ProxyObjectsTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.SimpleTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.StringLibTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.StructAssignmentTechnique),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.TableTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.TailCallTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.UserDataEnumsTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.UserDataEventsTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.UserDataFieldsTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.UserDataIndexerTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.UserDataMetaTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.UserDataMethodsTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.UserDataNestedTypesTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.UserDataOverloadsTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.UserDataPropertiesTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.VarargsTupleTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.VtUserDataFieldsTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.VtUserDataIndexerTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.VtUserDataMetaTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.VtUserDataMethodsTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.VtUserDataOverloadsTests),
            typeof(MoonSharp.Interpreter.Tests.EndToEnd.VtUserDataPropertiesTests),
            typeof(MoonSharp.Interpreter.Tests.TestMoreTests),
            typeof(MoonSharp.Interpreter.Tests.Units.BinDumpStreamTests),
            typeof(MoonSharp.Interpreter.Tests.Units.FastStackTests),
            typeof(MoonSharp.Interpreter.Tests.Units.InteropTests),
        };



        MoonSharp.Interpreter.Tests.TestRunner tr = new MoonSharp.Interpreter.Tests.TestRunner(Log);

        foreach (var r in tr.IterateOnTests(null, SKIPLIST.ToArray(), testFixtures))
        {
            Log(r);
            yield return(null);
        }

        Console_Write("\n DONE!! \n");
    }
Beispiel #6
0
	IEnumerator DoTests()
	{
		MoonSharp.Interpreter.Tests.TestRunner tr = new MoonSharp.Interpreter.Tests.TestRunner(Log);

		foreach (var r in tr.IterateOnTests())
		{
			Log(r);
			yield return null;
		}
	}
Beispiel #7
0
    IEnumerator DoTests()
    {
        MoonSharp.Interpreter.Tests.TestRunner tr = new MoonSharp.Interpreter.Tests.TestRunner(Log);

        foreach (var r in tr.IterateOnTests())
        {
            Log(r);
            yield return(null);
        }
    }
Beispiel #8
0
    IEnumerator DoTests()
    {
        MyNamespace.MyClass.Initialize();
        SKIPLIST.AddRange(HARDWIRE_SKIPLIST);
        UserData.RegistrationPolicy = new HardwireAndLogPolicy();



        MoonSharp.Interpreter.Tests.TestRunner tr = new MoonSharp.Interpreter.Tests.TestRunner(Log);

        foreach (var r in tr.IterateOnTests(null, SKIPLIST.ToArray()))
        {
            Log(r);
            yield return(null);
        }
    }
Beispiel #9
0
		static int Main(string[] args)
		{
			Console.ForegroundColor = ConsoleColor.Magenta;

			Console.WriteLine("====================================================================================");
			Console.WriteLine("====================================================================================");
			Console.WriteLine("====================================================================================");
			Console.WriteLine();
			Console.WriteLine();
			Console.WriteLine();
			
			try
			{
				TestRunner T = new TestRunner(Log);

				if (LOG_ON_FILE != null)
					File.WriteAllText(LOG_ON_FILE, "");

				Console.ForegroundColor = ConsoleColor.Cyan;
				Console.WriteLine("Running on AOT : {0}", Script.GlobalOptions.Platform.IsRunningOnAOT());

				if (Script.GlobalOptions.Platform.IsRunningOnAOT())
				{
					SKIPLIST.AddRange(AOT_SKIPLIST);
				}

				Console.WriteLine();
				Console.WriteLine();

				T.Test(RESTRICT_TEST, SKIPLIST.ToArray());

				if (Debugger.IsAttached)
				{
					Console.WriteLine("Press any key...");
					Console.ReadKey();
				}

				return T.Fail;
			}
			catch (Exception ex)
			{
				Console.WriteLine(ex.ToString());
				return 999;
			}
		}
Beispiel #10
0
 void DoTests()
 {
     MoonSharp.Interpreter.Tests.TestRunner tr = new MoonSharp.Interpreter.Tests.TestRunner(Log);
     tr.Test();
 }
Beispiel #11
0
	IEnumerator DoTests()
	{
        MyNamespace.MyClass.Initialize();
        SKIPLIST.AddRange(HARDWIRE_SKIPLIST);
        UserData.RegistrationPolicy = new HardwireAndLogPolicy();



		MoonSharp.Interpreter.Tests.TestRunner tr = new MoonSharp.Interpreter.Tests.TestRunner(Log);

        foreach (var r in tr.IterateOnTests(null, SKIPLIST.ToArray()))
		{
			Log(r);
			yield return null;
		}
	}
Beispiel #12
0
		static int Main(string[] args)
		{
			Console.ForegroundColor = ConsoleColor.Magenta;

			Console.WriteLine("====================================================================================");
			Console.WriteLine("====================================================================================");
			Console.WriteLine("====================================================================================");
			Console.WriteLine();
			Console.WriteLine();
			Console.WriteLine();


			MyNamespace.MyClass.Initialize();
			SKIPLIST.AddRange(HARDWIRE_SKIPLIST);
			UserData.RegistrationPolicy = new HardwireAndLogPolicy();


			try
			{
				TestRunner T = new TestRunner(Log);

				if (LOG_ON_FILE != null)
					File.WriteAllText(LOG_ON_FILE, "");

				Console.ForegroundColor = ConsoleColor.Cyan;
				Console.WriteLine("Running on AOT : {0}", Script.GlobalOptions.Platform.IsRunningOnAOT());


				if (Script.GlobalOptions.Platform.IsRunningOnAOT())
				{
					SKIPLIST.AddRange(AOT_SKIPLIST);
				}

				Console.WriteLine();
				Console.WriteLine();

				T.Test(RESTRICT_TEST, SKIPLIST.ToArray());

				if (Debugger.IsAttached)
				{
					Console.WriteLine("Press any key...");
					Console.ReadKey();
				}

				//OnTestEnded();

				return T.Fail;
			}
			catch (Exception ex)
			{
				Console.WriteLine(ex.ToString());
				return 999;
			}
		}