Skip to content

Commit

Permalink
Add JMF format 121 (read only)
Browse files Browse the repository at this point in the history
  • Loading branch information
LogicAndTrick committed May 25, 2019
1 parent 7b11713 commit dc80644
Show file tree
Hide file tree
Showing 9 changed files with 826 additions and 18 deletions.
31 changes: 31 additions & 0 deletions Sledge.Formats.Map.Tests/Formats/TestJackhammerFormat.cs
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}");
}
}
}
}
}
}
Loading

0 comments on commit dc80644

Please sign in to comment.