Added new test-files
This commit is contained in:
parent
81140d809b
commit
9bf4b675e4
BIN
PhotoRenamer.Test/Assets/IMG_20120528_125912.jpg
Normal file
BIN
PhotoRenamer.Test/Assets/IMG_20120528_125912.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 MiB |
BIN
PhotoRenamer.Test/Assets/Subfolder/IMG_20120526_170007.jpg
Normal file
BIN
PhotoRenamer.Test/Assets/Subfolder/IMG_20120526_170007.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 MiB |
@ -8,14 +8,26 @@ namespace PhotoRenamer.Test
|
||||
[TestClass]
|
||||
public class FilesTest
|
||||
{
|
||||
[TestMethod]
|
||||
public void FindSupportedFiles()
|
||||
private readonly string[] _files;
|
||||
|
||||
public FilesTest()
|
||||
{
|
||||
var path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Assets");
|
||||
var files = Base.FilesHelper.FindSupportedFilesRecursively(path).ToArray();
|
||||
Assert.AreEqual(2, files.Length);
|
||||
Assert.AreEqual("IMG_3590.CR2", Path.GetFileName(files[0]));
|
||||
Assert.AreEqual("IMG_3590.JPG", Path.GetFileName(files[1]));
|
||||
_files = Base.FilesHelper.FindSupportedFilesRecursively(path).ToArray();
|
||||
}
|
||||
|
||||
[TestMethod, Priority(0)]
|
||||
public void FindSupportedFiles()
|
||||
{
|
||||
Assert.AreEqual(2, _files.Length);
|
||||
Assert.AreEqual("IMG_20120528_125912.jpg", Path.GetFileName(_files[0]));
|
||||
Assert.AreEqual("IMG_20120526_170007.jpg", Path.GetFileName(_files[1]));
|
||||
}
|
||||
|
||||
[TestMethod, Priority(1)]
|
||||
public void GetMetaData()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -31,6 +31,12 @@
|
||||
<None Update="Assets\Subfolder\IMG_3590.JPG">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Assets\IMG_20120528_125912.jpg">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Assets\Subfolder\IMG_20120526_170007.jpg">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
Loading…
x
Reference in New Issue
Block a user