public void WriteAsync_DelegatesToReaderTest()
        {
            Task   returnValue  = Task.Delay(0);
            object writtenValue = new object();

            When(writer.WriteAsync(writtenValue)).ThenReturn(returnValue);
            AssertEquals(returnValue, testObj.WriteAsync(writtenValue));
            Verify(writer).WriteAsync(writtenValue);
            VerifyNoMoreInteractions();
        }
 public Task WriteAsync(object obj) => writer.WriteAsync(obj);
Example #3
0
 public Task SendServiceBroadcastAsync(IReadOnlySet <Guid> serviceGuids)
 {
     return(pofStreamWriter.WriteAsync(new G2HServiceBroadcast(serviceGuids)));
 }