public void WhenConvertBytesToBase64String() { var req1 = System.Text.Encoding.UTF8.GetBytes("Hello world! :)"); var val1 = new BinaryValue(req1, null); var res1 = val1.ToBase64().Value; res1.Should().Be(Convert.ToBase64String(req1)); }