public void WhenConvertBase64StringToBytes() { var bytes = System.Text.Encoding.UTF8.GetBytes("Hello world! :)"); var req1 = Convert.ToBase64String(bytes); var val1 = new StringValue(req1, null); var res1 = val1.FromBase64().Value; res1.SequenceEqual(bytes).Should().BeTrue(); }