Skip to content

Commit 3c12f78

Browse files
committed
Fix for CoreAppXmlConfiguration
1 parent 91e5cb9 commit 3c12f78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/TestStack.White/Configuration/CoreAppXmlConfiguration.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace TestStack.White.Configuration
1111
{
1212
public class CoreAppXmlConfiguration : AssemblyConfiguration, ICoreConfiguration
1313
{
14-
private static ICoreConfiguration instance = new CoreAppXmlConfiguration();
14+
private static ICoreConfiguration instance;
1515
private readonly DynamicProxyInterceptors interceptors = new DynamicProxyInterceptors();
1616
private static readonly Dictionary<string, object> DefaultValues = new Dictionary<string, object>();
1717

@@ -34,12 +34,12 @@ static CoreAppXmlConfiguration()
3434
DefaultValues.Add("MaxElementSearchDepth", 10);
3535
DefaultValues.Add("DoubleClickInterval", 0);
3636
DefaultValues.Add("MoveMouseToGetStatusOfHourGlass", true);
37-
DefaultValues.Add("KeepOpenOnDispose", false);
37+
DefaultValues.Add("KeepOpenOnDispose", false);
3838
}
3939

4040
public static ICoreConfiguration Instance
4141
{
42-
get { return instance; }
42+
get { return instance ?? (instance = new CoreAppXmlConfiguration()); }
4343
}
4444

4545
private CoreAppXmlConfiguration()

0 commit comments

Comments
 (0)