Browse Source

Debugging DatePickers fail 5

Tig 11 months ago
parent
commit
c6c393699c
1 changed files with 10 additions and 1 deletions
  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 ()