async UniTask Test(byte[] data, IDataTransform dataTransform)
            {
                var applied = await dataTransform.ApplyAsync(data);
                var result  = await dataTransform.ReverseAsync(applied);

                Assert.AreEqual(data, result);
            }
Ejemplo n.º 2
0
 public UniTask <byte[]> ApplyAsync(byte[] data) =>
 _firstTransform.ApplyAsync(data)
 .ContinueWith(bytes => _secondTransform.ApplyAsync(bytes));
 public UniTask <byte[]> SerializeAsync <T>(T data) =>
 _baseProvider.SerializeAsync(data)
 .ContinueWith(bytes => _dataTransform.ApplyAsync(bytes));