Color full panel bars, swap containers, fix black text, fix non-delta parens

This commit is contained in:
Tyfon
2024-05-02 11:19:02 -07:00
parent 107d598b7e
commit 1809f1343d
6 changed files with 214 additions and 81 deletions

View File

@@ -1,3 +1,5 @@
using System.Collections.Generic;
namespace UIFixes.Test
{
[TestClass]
@@ -21,13 +23,16 @@ namespace UIFixes.Test
{ "del. 2sec", "del. 2sec" },
{ "Hello.world", "Hello.world" },
{ "2Fast20Furious0", "2Fast20Furious0" },
{ "1.0.2", "1.0.2" }
{ "2.720(+0.57)", "2.72(+0.57)" },
{ "2.720<color=#FFFFFF>(+0.64)</color>", "2.72<color=#FFFFFF>(+0.64)</color>" },
{ "Class 3 (34)", "Class 3 (34)" },
{ "$1234 (30)", "$1234 (30)" }
};
foreach (var testCase in testCases)
{
string result = ItemPanelPatches.RemoveTrailingZeros(testCase.Key);
Assert.AreEqual(result, testCase.Value);
Assert.AreEqual(testCase.Value, result);
}
}
}