Example #1
0
        public void ThrowsArgumentNullException_When_KeyIsInvalid(string key)
        {
            // arrange / act
            const string data   = "Data";
            var          action = new Func <Task>(async() => await _sut.SetItemAsStringAsync(key, data));

            // assert
            Assert.ThrowsAsync <ArgumentNullException>(action);
        }
        private async Task SetCulture(string culture)
        {
            await LocalStorageService.SetItemAsStringAsync("culture", culture);

            NavigationManager.NavigateTo(NavigationManager.Uri, forceLoad: true);
        }