public async Task GetStorageAllTestAsync(StorageUnit unit, double input, double expected) { fixture.Customize(new SystemStorageCustomization(unit, input)); SystemController mockController = fixture.Build <SystemController>() .OmitAutoProperties() .Create(); Collection <StorageResult> result = await mockController.GetAllStorageSpacesAsync(); // Value at time of writing was 5. Should always be more than 1. Assert.True(result.Count > 1); // Doesn't matter the result. Set up so they're all the same. Assert.Equal(expected, result[0].TotalSpace); }