Skip to content

Commit

Permalink
[UnitTest_WzFile] added more wz test case
Browse files Browse the repository at this point in the history
  • Loading branch information
lastbattle committed Nov 29, 2022
1 parent 9664843 commit e579be5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion UnitTest_WzFile/UnitTest1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;

namespace UnitTest_WzFile
{
[TestClass]
public class UnitTest1
{
private static List<Tuple<string, WzMapleVersion>> _testFiles = new List<Tuple<string, WzMapleVersion>>();
private static readonly List<Tuple<string, WzMapleVersion>> _testFiles = new List<Tuple<string, WzMapleVersion>>();

public UnitTest1()
{
Expand All @@ -23,12 +24,14 @@ public UnitTest1()
_testFiles.Add(new Tuple<string, WzMapleVersion>("TamingMob_GMS_75.wz", WzMapleVersion.GMS));
_testFiles.Add(new Tuple<string, WzMapleVersion>("TamingMob_GMS_87.wz", WzMapleVersion.GMS));
_testFiles.Add(new Tuple<string, WzMapleVersion>("TamingMob_GMS_95.wz", WzMapleVersion.GMS));
_testFiles.Add(new Tuple<string, WzMapleVersion>("TamingMob_000_GMS_237.wz", WzMapleVersion.GMS));

// MSEA
_testFiles.Add(new Tuple<string, WzMapleVersion>("TamingMob_SEA_135.wz", WzMapleVersion.BMS));
_testFiles.Add(new Tuple<string, WzMapleVersion>("TamingMob_SEA_160.wz", WzMapleVersion.BMS));
_testFiles.Add(new Tuple<string, WzMapleVersion>("TamingMob_SEA_211.wz", WzMapleVersion.BMS));
_testFiles.Add(new Tuple<string, WzMapleVersion>("TamingMob_SEA_212.wz", WzMapleVersion.BMS));
_testFiles.Add(new Tuple<string, WzMapleVersion>("TamingMob_000_SEA218.wz", WzMapleVersion.BMS));

// Thailand MS
_testFiles.Add(new Tuple<string, WzMapleVersion>("TamingMob_ThaiMS_3.wz", WzMapleVersion.BMS));
Expand All @@ -47,6 +50,8 @@ public void TestOlderWzFiles()

string filePath = Path.Combine(Directory.GetCurrentDirectory(), "WzFiles", fileName);

Debug.WriteLine("Running test for " + fileName);

try
{
WzFile f = new WzFile(filePath, (short) -1, wzMapleVerEnc);
Expand Down
7 changes: 7 additions & 0 deletions UnitTest_WzFile/UnitTest_WzFile.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
<None Include="WzFiles\TamingMob_000_GMS_237.wz">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="WzFiles\TamingMob_000_SEA218.wz">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="WzFiles\TamingMob_SEA_212.wz">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
Binary file added UnitTest_WzFile/WzFiles/TamingMob_000_GMS_237.wz
Binary file not shown.
Binary file added UnitTest_WzFile/WzFiles/TamingMob_000_SEA218.wz
Binary file not shown.

0 comments on commit e579be5

Please sign in to comment.