Skip to content

Commit bd52ea0

Browse files
committed
🧹 Remove TestCompareVersion() from tests
- Since we now use System.Version, it's no longer needed.
1 parent d376002 commit bd52ea0

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

test/UnitTest.cs

-12
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,6 @@ namespace Shadowsocks.Test
1414
[TestClass]
1515
public class UnitTest
1616
{
17-
[TestMethod]
18-
public void TestCompareVersion()
19-
{
20-
Assert.IsTrue(UpdateChecker.Asset.CompareVersion("2.3.1.0", "2.3.1") == 0);
21-
Assert.IsTrue(UpdateChecker.Asset.CompareVersion("1.2", "1.3") < 0);
22-
Assert.IsTrue(UpdateChecker.Asset.CompareVersion("1.3", "1.2") > 0);
23-
Assert.IsTrue(UpdateChecker.Asset.CompareVersion("1.3", "1.3") == 0);
24-
Assert.IsTrue(UpdateChecker.Asset.CompareVersion("1.2.1", "1.2") > 0);
25-
Assert.IsTrue(UpdateChecker.Asset.CompareVersion("2.3.1", "2.4") < 0);
26-
Assert.IsTrue(UpdateChecker.Asset.CompareVersion("1.3.2", "1.3.1") > 0);
27-
}
28-
2917
[TestMethod]
3018
public void TestHotKey2Str()
3119
{

0 commit comments

Comments
 (0)