コード例 #1
0
    public void Test_001_Base64String()
    {
        byte[] MessageBytes  = DataManagement.String2Bytes(Message);
        string Base64Message = DataManagement.Bytes2Base64String(MessageBytes);

        byte[] Base64Bytes = DataManagement.Base64String2Bytes(Base64Message);
        Assert.AreEqual(MessageBytes.Length, Base64Bytes.Length);
        string MessageText = DataManagement.Bytes2String(Base64Bytes);

        Assert.AreEqual(Message, MessageText);
        return;
    }