initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Quasar.Common.Cryptography;
|
||||
using Quasar.Common.Helpers;
|
||||
|
||||
namespace Quasar.Common.Tests.Cryptography
|
||||
{
|
||||
[TestClass]
|
||||
public class Sha256Tests
|
||||
{
|
||||
[TestMethod, TestCategory("Cryptography")]
|
||||
public void ComputeHashTest()
|
||||
{
|
||||
var input = StringHelper.GetRandomString(100);
|
||||
var result = Sha256.ComputeHash(input);
|
||||
|
||||
Assert.IsNotNull(result);
|
||||
Assert.AreNotEqual(result, input);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user