コード例 #1
0
        void DoTests()
        {
            m_Ctx.Post(o => textView.Text = "", null);

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

            MoonSharp.Interpreter.Tests.TestRunner tr = new MoonSharp.Interpreter.Tests.TestRunner(Log);
            tr.Test();
        }
コード例 #3
0
ファイル: MainActivity.cs プロジェクト: cyecp/moonsharp
		void DoTests()
		{
			textView.Post (() => textView.Text = "");

			MoonSharp.Interpreter.Tests.TestRunner tr = new MoonSharp.Interpreter.Tests.TestRunner(Log);
			tr.Test();
		}
コード例 #4
0
ファイル: MainPage.xaml.cs プロジェクト: cyecp/moonsharp
		void DoTests()
		{
			m_Ctx.Post(o => textView.Text = "", null);

			MoonSharp.Interpreter.Tests.TestRunner tr = new MoonSharp.Interpreter.Tests.TestRunner(Log);
			tr.Test();
		}
コード例 #5
0
ファイル: Program.cs プロジェクト: cyecp/moonsharp
		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;
			}
		}
コード例 #6
0
ファイル: TestRunner.cs プロジェクト: liyonghelpme/moonsharp
 void DoTests()
 {
     MoonSharp.Interpreter.Tests.TestRunner tr = new MoonSharp.Interpreter.Tests.TestRunner(Log);
     tr.Test();
 }
コード例 #7
0
ファイル: Program.cs プロジェクト: InfectedBytes/moonsharp
		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;
			}
		}