Files
Troll-V2/Quasar.Common.Tests/Cryptography/SHA256.Tests.cs
T

21 lines
529 B
C#
Raw Normal View History

2026-08-27 11:22:16 -06:00
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);
}
}
}