Increase code coverage

This commit is contained in:
NextTurn
2020-08-08 00:00:00 +08:00
parent 4414e36f6b
commit b85593eb11
18 changed files with 466 additions and 123 deletions

View File

@@ -991,16 +991,16 @@ namespace WinSW
/// <exception cref="FileNotFoundException" />
private static XmlServiceConfig CreateConfig(string? path)
{
if (path != null)
{
return new XmlServiceConfig(path);
}
if (TestConfig != null)
{
return TestConfig;
}
if (path != null)
{
return new XmlServiceConfig(path);
}
path = Path.ChangeExtension(ExecutablePath, ".xml");
if (!File.Exists(path))
{