public async Task LoadDiskSpaceResultTest_FileNotExist() { var savedResult = ComplianceInfo.ClearSystemComplianceItemResult <DiskSpaceInfo>(); var actual = await DiskSpace.LoadDiskSpaceResult().ConfigureAwait(false); Assert.AreEqual(DiskSpaceInfo.Default, actual); }
public async Task SaveLoadDiskSpaceResultTest_Success() { var expected = new DiskSpaceInfo { SccmCacheSize = 12, TotalFreeDiskSpace = 123 }; var savedResult = await ComplianceInfo.SaveSystemComplianceItemResult <DiskSpaceInfo>(expected).ConfigureAwait(false); var actual = await DiskSpace.LoadDiskSpaceResult().ConfigureAwait(false); Assert.AreEqual(expected, actual); }