public async Task VirtualDiskCreate_Asynchronous() { string vhdxpath = Path.Combine(Environment.CurrentDirectory, "testvhdx.vhdx"); if (File.Exists(vhdxpath)) { File.Delete(vhdxpath); } var createparams = new VirtualDiskCreateParameters(vhdxpath, VirtualDiskType.VHDX, 4 * 1024 * 1024); using (VirtualDisk vdisk = await VirtualDisk.CreateAsync(createparams, CancellationToken.None, null)) { Assert.IsNotNull(vdisk); } }