public void GetHashEnumTest() { Assert.AreEqual(MultipleHashForm_Accessor.GetHashEnum("MD5"), MultipleHash.HashTypeEnumerator.MD5); Assert.AreEqual(MultipleHashForm_Accessor.GetHashEnum("RipeMD160"), MultipleHash.HashTypeEnumerator.RipeMD160); Assert.AreEqual(MultipleHashForm_Accessor.GetHashEnum("SHA1"), MultipleHash.HashTypeEnumerator.SHA1); Assert.AreEqual(MultipleHashForm_Accessor.GetHashEnum("SHA256"), MultipleHash.HashTypeEnumerator.SHA256); Assert.AreEqual(MultipleHashForm_Accessor.GetHashEnum("SHA384"), MultipleHash.HashTypeEnumerator.SHA384); Assert.AreEqual(MultipleHashForm_Accessor.GetHashEnum("SHA512"), MultipleHash.HashTypeEnumerator.SHA512); Assert.AreEqual(MultipleHashForm_Accessor.GetHashEnum("None"), MultipleHash.HashTypeEnumerator.None); }
public void GetHashNameTest() { Assert.AreEqual("MD5", MultipleHashForm_Accessor.GetHashName(MultipleHash.HashTypeEnumerator.MD5)); Assert.AreEqual("RipeMD160", MultipleHashForm_Accessor.GetHashName(MultipleHash.HashTypeEnumerator.RipeMD160)); Assert.AreEqual("SHA1", MultipleHashForm_Accessor.GetHashName(MultipleHash.HashTypeEnumerator.SHA1)); Assert.AreEqual("SHA256", MultipleHashForm_Accessor.GetHashName(MultipleHash.HashTypeEnumerator.SHA256)); Assert.AreEqual("SHA384", MultipleHashForm_Accessor.GetHashName(MultipleHash.HashTypeEnumerator.SHA384)); Assert.AreEqual("SHA512", MultipleHashForm_Accessor.GetHashName(MultipleHash.HashTypeEnumerator.SHA512)); Assert.AreEqual("None", MultipleHashForm_Accessor.GetHashName(MultipleHash.HashTypeEnumerator.None)); }