Exemplo n.º 1
0
        public async Task TestClearCache()
        {
            _coverService.CacheSize().Returns(1000);
            Assert.True(_settingsViewModel.CanClearCache);

            await _settingsViewModel.ClearCache();

            _coverService.Received(1).ClearCache();
            Assert.Equal("1000.00 B", _settingsViewModel.CacheSize);

            Assert.True(_settingsViewModel.CanClearCache);
        }