浏览代码

Debugging DatePickers fail 5

Tig 11 月之前
父节点
当前提交
c6c393699c
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. 10 1
      UnitTests/Application/ApplicationTests.cs

+ 10 - 1
UnitTests/Application/ApplicationTests.cs

@@ -463,7 +463,7 @@ public class ApplicationTests
     }
 
     [Fact]
-    public void InitWithoutTopLevelFactory_Begin_End_Cleans_Up ()
+    public void Init_WithoutTopLevelFactory_Begin_End_Cleans_Up ()
     {
         // Begin will cause Run() to be called, which will call Begin(). Thus will block the tests
         // if we don't stop
@@ -507,6 +507,15 @@ public class ApplicationTests
         Assert.Null (Application.Driver);
     }
 
+    [Fact]
+    public void Init_NoParam_ForceDriver_Works ()
+    {
+        Application.ForceDriver = "FakeDriver";
+        Application.Init ();
+        Assert.IsType<FakeDriver> (Application.Driver);
+        Application.ResetState ();
+    }
+
     [Fact]
     [AutoInitShutdown]
     public void Internal_Properties_Correct ()