public void shouldConvertBackAndForth() { string str = RandomString(1000); string back = TrytesConverter.ToString(TrytesConverter.ToTrytes(str)); Assert.AreEqual(str, back); }
internal void CreateTransaction() { var address = client.GetNewAddress(seed, 0, false, 1, false); Transfer transfer = new Transfer(address.First(), 0, TrytesConverter.ToTrytes("Test Iota Message"), TrytesConverter.ToTrytes("Test Tag")); client.SendTransfer(seed, 10, 18, new Transfer[] { transfer }); }
public void shouldConvertStringToTrytes() { Assert.AreEqual("IC", TrytesConverter.ToTrytes("Z")); Assert.AreEqual(TrytesConverter.ToTrytes("JOTA JOTA"), "TBYBCCKBEATBYBCCKB"); }