miniSql

创建
zgc123@gmail.com authored at 11/19/2023 1:40:15 AM
6136600
Tree
0 Parent(s)
Summary: 1 changed files with 41 additions and 0 deletions.
Added +41 -0
Added +41 -0
diff --git a/minisqlquery-master/src/MiniSqlQuery.Tests/Gui/Basic_GUI_tests.cs b/minisqlquery-master/src/MiniSqlQuery.Tests/Gui/Basic_GUI_tests.cs
new file mode 100644
index 0000000..8853416
--- /dev/null
+++ b/minisqlquery-master/src/MiniSqlQuery.Tests/Gui/Basic_GUI_tests.cs
@@ -0,0 +1,41 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+using NUnit.Framework;
+using NUnit.Framework.SyntaxHelpers;
+
+namespace MiniSqlQuery.Tests.Gui
+{
+	[TestFixture]
+	public class Basic_GUI_tests : QueryFormTester
+	{
+		[Test]
+		public void Check_all_new_query_from_defaults()
+		{
+			ShowBasicForm();
+
+			Assert.That(QueryEditor.AllText, Is.Empty);
+			Assert.That(QueryEditor.FileName, Is.Null);
+			Assert.That(QueryEditor.Batch, Is.Null);
+			Assert.That(QueryEditor.IsDirty, Is.False);
+			Assert.That(QueryEditor.SelectedText, Is.Empty);
+			Assert.That(QueryEditor.CursorOffset, Is.EqualTo(0));
+			Assert.That(QueryEditor.TotalLines, Is.EqualTo(1));
+		}
+	}
+
+	//static class App
+	//{
+	//    /// <summary>
+	//    /// The main entry point for the application.
+	//    /// </summary>
+	//    [STAThread]
+	//    static void Main(string[] args)
+	//    {
+	//        Basic_GUI_tests t = new Basic_GUI_tests();
+	//        t.Setup();
+	//        t.t1();
+	//    }
+	//}
+}
\ No newline at end of file