public async Task FileWriteAllBytesAsyncTest() { await _systemOperations.FileWriteAllBytesAsync(_subdirectoryFilePath, new byte[10]); SubdirectoryVerifyDirectoryCreationAndOwnership(); _mockFileSystemOperations.Verify(x => x.WriteAllBytesAsync(_subdirectoryFilePath, It.IsAny <byte[]>(), It.IsAny <CancellationToken>()), Times.Once); }