Skip to content

Commit

Permalink
完善测试用例
Browse files Browse the repository at this point in the history
  • Loading branch information
JiuLing-zhang committed Dec 15, 2024
1 parent da49f75 commit db5e5b5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void PostfixTest(string input, string postfix, string result)
}

[TestMethod()]
[DataRow("", "")]
[DataRow("", "d41d8cd98f00b204e9800998ecf8427e")]
[DataRow("test1=1&test2=2", "ee2511b7137adee95204899d1855eb3f")]
public void MD5Test(string input, string result)
{
Expand All @@ -120,7 +120,7 @@ public void MD5Test(string input, string result)
}

[TestMethod()]
[DataRow("", "")]
[DataRow("", "da39a3ee5e6b4b0d3255bfef95601890afd80709")]
[DataRow("test1=1&test2=2", "e4e44e7539fff69b6fb984ef206aedaf9b3c650f")]
public void SHA1Test(string input, string result)
{
Expand All @@ -129,7 +129,7 @@ public void SHA1Test(string input, string result)
}

[TestMethod()]
[DataRow("", "")]
[DataRow("", "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855")]
[DataRow("test1=1&test2=2", "8ebc3e5c2302d3500e7a7e1dcb5e9ff65d1b0c304133cca9cb656e8f67275a9e")]
public void SHA256Test(string input, string result)
{
Expand Down

0 comments on commit db5e5b5

Please sign in to comment.