Skip to content

Commit

Permalink
add more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterCouto committed Oct 2, 2022
1 parent 91c89ec commit d3698eb
Show file tree
Hide file tree
Showing 15 changed files with 164,497 additions and 3 deletions.
96 changes: 96 additions & 0 deletions source/d2ceTests/D2EditorTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,36 @@ namespace D2EditorTests
TestOpenBase("Konan.d2s", d2ce::EnumCharVersion::v140, true);
}

TEST_METHOD(TestOpen40)
{
TestOpenBase("Blizzard.d2s", d2ce::EnumCharVersion::v140, true);
}

TEST_METHOD(TestOpen41)
{
TestOpenBase("Fire.d2s", d2ce::EnumCharVersion::v140, true);
}

TEST_METHOD(TestOpen42)
{
TestOpenBase("JavaZone.d2s", d2ce::EnumCharVersion::v140, true);
}

TEST_METHOD(TestOpen43)
{
TestOpenBase("Loradiel.d2s", d2ce::EnumCharVersion::v140, true);
}

TEST_METHOD(TestOpen44)
{
TestOpenBase("Rui.d2s", d2ce::EnumCharVersion::v140, true);
}

TEST_METHOD(TestOpen45)
{
TestOpenBase("Spartacus.d2s", d2ce::EnumCharVersion::v140, true);
}

TEST_METHOD(TestJsonExport01)
{
TestJsonExportBase("Merlina.d2s", d2ce::EnumCharVersion::v110, true);
Expand Down Expand Up @@ -842,6 +872,36 @@ namespace D2EditorTests
TestJsonExportBase("Konan.d2s", d2ce::EnumCharVersion::v140, true, false);
}

TEST_METHOD(TestJsonExport48)
{
TestJsonExportBase("Blizzard.d2s", d2ce::EnumCharVersion::v140, true, false);
}

TEST_METHOD(TestJsonExport49)
{
TestJsonExportBase("Fire.d2s", d2ce::EnumCharVersion::v140, true, false);
}

TEST_METHOD(TestJsonExport50)
{
TestJsonExportBase("JavaZone.d2s", d2ce::EnumCharVersion::v140, true, false);
}

TEST_METHOD(TestJsonExport51)
{
TestJsonExportBase("Loradiel.d2s", d2ce::EnumCharVersion::v140, true, false);
}

TEST_METHOD(TestJsonExport52)
{
TestJsonExportBase("Rui.d2s", d2ce::EnumCharVersion::v140, true, false);
}

TEST_METHOD(TestJsonExport53)
{
TestJsonExportBase("Spartacus.d2s", d2ce::EnumCharVersion::v140, true, false);
}

TEST_METHOD(TestJsonOpen01)
{
d2ce::Character character;
Expand Down Expand Up @@ -1127,6 +1187,42 @@ namespace D2EditorTests
Assert::IsTrue(LoadCharFile("Konan.json", character, d2ce::EnumCharVersion::v140, true));
}

TEST_METHOD(TestJsonOpen50)
{
d2ce::Character character;
Assert::IsTrue(LoadCharFile("Blizzard.json", character, d2ce::EnumCharVersion::v140, true));
}

TEST_METHOD(TestJsonOpen51)
{
d2ce::Character character;
Assert::IsTrue(LoadCharFile("Fire.json", character, d2ce::EnumCharVersion::v140, true));
}

TEST_METHOD(TestJsonOpen52)
{
d2ce::Character character;
Assert::IsTrue(LoadCharFile("JavaZone.json", character, d2ce::EnumCharVersion::v140, true));
}

TEST_METHOD(TestJsonOpen53)
{
d2ce::Character character;
Assert::IsTrue(LoadCharFile("Loradiel.json", character, d2ce::EnumCharVersion::v140, true));
}

TEST_METHOD(TestJsonOpen54)
{
d2ce::Character character;
Assert::IsTrue(LoadCharFile("Rui.json", character, d2ce::EnumCharVersion::v140, true));
}

TEST_METHOD(TestJsonOpen55)
{
d2ce::Character character;
Assert::IsTrue(LoadCharFile("Spartacus.json", character, d2ce::EnumCharVersion::v140, true));
}

TEST_METHOD(TestJsonTestComplexChange01)
{
d2ce::Character character;
Expand Down
180 changes: 180 additions & 0 deletions source/d2ceTests/D2EditorTests.vcxproj

Large diffs are not rendered by default.

40 changes: 37 additions & 3 deletions source/d2ceTests/D2EditorTests.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,43 @@
<CustomBuild Include="..\examples\chars\99\Konan.d2s">
<Filter>examples\char\99</Filter>
</CustomBuild>
<CustomBuild Include="..\examples\chars\99\Walter.json" />
<CustomBuild Include="..\examples\chars\99\Blizzard.d2s">
<Filter>examples\char\99</Filter>
</CustomBuild>
<CustomBuild Include="..\examples\chars\99\Blizzard.json">
<Filter>examples\char\99</Filter>
</CustomBuild>
<CustomBuild Include="..\examples\chars\99\Fire.d2s">
<Filter>examples\char\99</Filter>
</CustomBuild>
<CustomBuild Include="..\examples\chars\99\Fire.json">
<Filter>examples\char\99</Filter>
</CustomBuild>
<CustomBuild Include="..\examples\chars\99\JavaZone.d2s">
<Filter>examples\char\99</Filter>
</CustomBuild>
<CustomBuild Include="..\examples\chars\99\JavaZone.json">
<Filter>examples\char\99</Filter>
</CustomBuild>
<CustomBuild Include="..\examples\chars\99\Loradiel.d2s">
<Filter>examples\char\99</Filter>
</CustomBuild>
<CustomBuild Include="..\examples\chars\99\Loradiel.json">
<Filter>examples\char\99</Filter>
</CustomBuild>
<CustomBuild Include="..\examples\chars\99\Rui.d2s">
<Filter>examples\char\99</Filter>
</CustomBuild>
<CustomBuild Include="..\examples\chars\99\Rui.json">
<Filter>examples\char\99</Filter>
</CustomBuild>
<CustomBuild Include="..\examples\chars\99\Spartacus.d2s">
<Filter>examples\char\99</Filter>
</CustomBuild>
<CustomBuild Include="..\examples\chars\99\Spartacus.json">
<Filter>examples\char\99</Filter>
</CustomBuild>
</ItemGroup>
<ItemGroup>
<None Include="..\d2ce\thirdparty\jsoncpp\src\lib_json\json_valueiterator.inl">
Expand All @@ -699,8 +736,5 @@
<None Include="..\d2ce\thirdparty\utf8\include\utf8\LICENSE">
<Filter>Header Files\utf8</Filter>
</None>
<None Include="..\examples\chars\99\Walter.json">
<Filter>examples\char\99</Filter>
</None>
</ItemGroup>
</Project>
Binary file added source/examples/chars/99/Blizzard.d2s
Binary file not shown.
Loading

0 comments on commit d3698eb

Please sign in to comment.