Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sakari-malkki committed Sep 13, 2024
1 parent 9ca6405 commit 3048441
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ public void ValidateDatabaseWithSingleLanguagePxFileReturnsValidResult()

// Assert
Assert.IsNotNull(result, "Validation result should not be null");
// LANGUAGES keyword is recommended, but not required, three warning level feedback items are expected
Assert.AreEqual(1, result.FeedbackItems.Count); // Unique feedbacks
Assert.AreEqual(3, result.FeedbackItems.Values.SelectMany(f => f).Count()); // Total feedbacks including duplicates
Assert.AreEqual(0, result.FeedbackItems.Count);
}

[TestMethod]
Expand All @@ -147,9 +145,7 @@ public async Task ValidateDatabaseAsyncWithSingleLanguagePxFileReturnsValidResul

// Assert
Assert.IsNotNull(result, "Validation result should not be null");
// LANGUAGES keyword is recommended, but not required, three warning level feedback items are expected
Assert.AreEqual(1, result.FeedbackItems.Count); // Unique feedbacks
Assert.AreEqual(3, result.FeedbackItems.Values.SelectMany(f => f).Count()); // Total feedbacks including duplicates
Assert.AreEqual(0, result.FeedbackItems.Count);
}
}
}
1 change: 1 addition & 0 deletions Px.Utils.UnitTests/Validation/Fixtures/PxFileFixtures.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ internal static class PxFileFixtures
"\r\nAXIS-VERSION=\"2013\";" +
"\r\nCODEPAGE=\"UTF-8\";" +
"\r\nLANGUAGE=\"en\";" +
"\r\nLANGUAGES=\"en\";" +
"\r\nNEXT-UPDATE=\"20240201 08:00\";" +
"\r\nTABLEID=\"table-id\";" +
"\r\nSUBJECT-AREA=\"subject-area\";" +
Expand Down

0 comments on commit 3048441

Please sign in to comment.