public void ToStream_ToString_With_Encoding() { using (var ms = S3.ToStream(Encoding.UTF8)) { string str2 = StringTool.ToString(ms, Encoding.UTF8); Assert.AreEqual(S3, str2); } }
public void Base64StringTest() { string enc = S3.ToBytes().Base64Encode(); string dec = StringTool.ToString(enc.Base64Decode()); Assert.AreEqual(S3, dec); }
public void ToStream_ToString() { Assert.AreEqual(S3, StringTool.ToString(S3.ToStream())); Assert.AreEqual(S3, StringTool.ToString(S3.ToStream(Encoding.UTF8), Encoding.UTF8)); }