public void ByteArrayDictionary() { var target = new ClassWithByteArrayDictionary { Property = new Dictionary <string, byte[]> { { "Key1", new byte[] { 2, 3 } }, { "Key2", new byte[] { 5, 6 } } } }; var result = RoundTrip.Run(target); CollectionAssert.AreEqual(new byte[] { 5, 6 }, result.Property["Key2"]); }
public async Task ByteArrayDictionary() { var target = new ClassWithByteArrayDictionary { Property = new Dictionary <string, byte[]> { { "Key1", new byte[] { 2, 3 } }, { "Key2", new byte[] { 5, 6 } } } }; var result = await RoundTrip.Run(target); Assert.Equal(new byte[] { 5, 6 }, result.Property?["Key2"]); }