Browse Source

🧹 Remove TestCompareVersion() from tests

- Since we now use System.Version, it's no longer needed.
tags/4.3.0.0
database64128 4 years ago
parent
commit
bd52ea0e9a
No known key found for this signature in database GPG Key ID: 1CA27546BEDB8B01
1 changed files with 0 additions and 12 deletions
  1. +0
    -12
      test/UnitTest.cs

+ 0
- 12
test/UnitTest.cs View File

@@ -14,18 +14,6 @@ namespace Shadowsocks.Test
[TestClass]
public class UnitTest
{
[TestMethod]
public void TestCompareVersion()
{
Assert.IsTrue(UpdateChecker.Asset.CompareVersion("2.3.1.0", "2.3.1") == 0);
Assert.IsTrue(UpdateChecker.Asset.CompareVersion("1.2", "1.3") < 0);
Assert.IsTrue(UpdateChecker.Asset.CompareVersion("1.3", "1.2") > 0);
Assert.IsTrue(UpdateChecker.Asset.CompareVersion("1.3", "1.3") == 0);
Assert.IsTrue(UpdateChecker.Asset.CompareVersion("1.2.1", "1.2") > 0);
Assert.IsTrue(UpdateChecker.Asset.CompareVersion("2.3.1", "2.4") < 0);
Assert.IsTrue(UpdateChecker.Asset.CompareVersion("1.3.2", "1.3.1") > 0);
}
[TestMethod]
public void TestHotKey2Str()
{


Loading…
Cancel
Save