Skip to content

Commit

Permalink
Test if configs do have a .xml file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
hirschmann committed Dec 3, 2017
1 parent c1d071a commit a8767da
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -55,6 +55,13 @@ public void HaveAllConfigsBeenLoaded()
Assert.True(configsLookup.SetEquals(configMan.ConfigNames));
}

[Fact]
public void DoAllConfigsHaveXmlFileExtension()
{
string path = GetConfigsDir();
Assert.True(Directory.GetFiles(path).All(x => x.EndsWith(".xml")));
}

private static string GetConfigsDir()
{
string path = Directory.GetParent(Environment.CurrentDirectory)?
Expand Down

0 comments on commit a8767da

Please sign in to comment.