public void BytesWrapper_Standalone() { ByteString data = ByteString.CopyFrom(1, 2, 3); // Can't do this with attributes... var parsed = TextParser.Default.Parse <BytesValue>(TextFormatter.EncodeByteString(data)); var expected = new BytesValue { Value = data }; Assert.Equal(expected, parsed); }