-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b11713
commit dc80644
Showing
9 changed files
with
826 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.IO; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using Sledge.Formats.Map.Formats; | ||
|
||
namespace Sledge.Formats.Map.Tests.Formats | ||
{ | ||
[TestClass] | ||
public class TestJackhammerFormat | ||
{ | ||
[TestMethod] | ||
public void TestJmfFormatLoading() | ||
{ | ||
var format = new JackhammerJmfFormat(); | ||
foreach (var file in Directory.GetFiles(@"D:\Downloads\formats\jmf", "1group.jmf")) | ||
{ | ||
using (var r = File.OpenRead(file)) | ||
{ | ||
try | ||
{ | ||
format.Read(r); | ||
} | ||
catch (Exception ex) | ||
{ | ||
Assert.Fail($"Unable to read file: {Path.GetFileName(file)}. {ex.Message}"); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.