Quasar/ClientTests/Core/Encryption/SHA256.Tests.cs

21 lines
482 B
C#
Raw Normal View History

2015-05-13 17:11:55 +00:00
using Microsoft.VisualStudio.TestTools.UnitTesting;
using xClient.Core.Encryption;
using xClient.Core.Helper;
namespace xClientTests.Core.Encryption
{
[TestClass]
public class SHA256Tests
{
[TestMethod]
public void ComputeHashTest()
{
var input = Helper.GetRandomName(100);
var result = SHA256.ComputeHash(input);
Assert.IsNotNull(result);
Assert.AreNotEqual(result, input);
}
}
}