|
@@ -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 ()
|