public void GetRawData_OfTestValue_ReturnsExpectedByteString() { var objectUnderTest = new nsACString(); objectUnderTest.SetData("hello world"); byte[] bytes = objectUnderTest.GetRawData(); Assert.AreEqual(new byte[] { 104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100}, bytes); }
public void GetRawData_OfTestValue_ReturnsExpectedByteString() { var objectUnderTest = new nsACString(); objectUnderTest.SetData("hello world"); byte[] bytes = objectUnderTest.GetRawData(); Assert.AreEqual(new byte[] { 104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100 }, bytes); }
public byte[] Finish() { byte[] ret; using (var str = new nsACString()) { _cryptoHash.Instance.Finish(false, str); ret = str.GetRawData(); } return(ret); }
public byte[] Finish() { byte[] ret; using (var str = new nsACString()) { _cryptoHash.Instance.Finish(false, str); ret = str.GetRawData(); } return ret; }