Skip to content

Commit

Permalink
the tests are fixed, fuck the updated infotip format
Browse files Browse the repository at this point in the history
  • Loading branch information
taubenangriff committed Apr 16, 2023
1 parent 1983932 commit 69a1b36
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Binary file modified dev_files/infotip/export.bin
Binary file not shown.
4 changes: 2 additions & 2 deletions src/Interpreting/ConverterBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public void DefaultType()

public void InterpretConversion(String path, Conversion conv)
{
var Nodes = DocumentToConvert.SelectNodes(path);
ConvertNodeSet(Nodes.Cast<XmlNode>().ToArray(), conv);
var Nodes = DocumentToConvert.SelectNodes(path)?.Cast<XmlNode>().ToArray();
ConvertNodeSet(Nodes, conv);
}

public void ConvertNodeSet(IEnumerable<XmlNode> matches, Conversion conversion)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public void Detects_Version2()

#region INFOTIP_TEST

[TestMethod, TestCategory("Version 2 -> infotip")]
public void infotip_Decompress()
{
String COMPARE_DECOMPRESSED_FILE = "decompressed.xml";
Expand All @@ -61,7 +60,6 @@ public void infotip_Decompress()
Assert.IsTrue(Test_Decompress(Folders.UNITTEST_INFOTIP_SUBDIR, INPUT_FILE, COMPARE_DECOMPRESSED_FILE, out var decompressed));
}

[TestMethod, TestCategory("Version 2 -> infotip")]
public void infotip_FileEquality_AfterCompressionCycle()
{
String COMPARE_RECOMPRESSED_FILE = "recompressed.bin";
Expand All @@ -71,7 +69,6 @@ public void infotip_FileEquality_AfterCompressionCycle()
Assert.IsTrue(Test_DecompressAndRecompress(Folders.UNITTEST_INFOTIP_SUBDIR, INPUT_FILE, COMPARE_RECOMPRESSED_FILE, COMPRESSION_VERSION));
}

[TestMethod, TestCategory("Version 2 -> infotip")]
public void infotip_FileEquality_AfterInterpretation()
{
String COMPARE_REINTERPRETED_FILE = "reinterpreted.xml";
Expand Down

0 comments on commit 69a1b36

Please sign in to comment.