Added Prism to example, Added ability to filter files and minor bugfixes
This commit is contained in:
@@ -9,7 +9,8 @@ namespace Katteker.Test
|
||||
public class KattekerLibTest
|
||||
{
|
||||
private static readonly string BaseDir = AppDomain.CurrentDomain.BaseDirectory;
|
||||
private static readonly string ExampleFile = Path.Combine(BaseDir, "testdata", "Example.exe");
|
||||
private static readonly string ExamplePath = Path.Combine(BaseDir, "testdata");
|
||||
private static readonly string ExampleFile = Path.Combine(ExamplePath, "Example.exe");
|
||||
|
||||
[Test]
|
||||
public void Sha1ChecksumOfFile()
|
||||
@@ -53,7 +54,14 @@ namespace Katteker.Test
|
||||
public void TestGetLocalAppDataDirectory()
|
||||
{
|
||||
var expected = Utility.GetLocalAppDataDirectory();
|
||||
Assert.IsTrue(expected.Contains("AppData\\Local"));
|
||||
Assert.IsTrue(expected.Contains("AppData\\Local\\Programs"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestEnumerateFiles()
|
||||
{
|
||||
var list = KattekerCreator.Helper.Utils.EnumerateFiles(ExamplePath, new[] {"*.xml"});
|
||||
Assert.AreEqual(13, list.Count);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user