Exemple #1
0
        public async Task LoadAsync_ValidInput_DoesNotThrowException()
        {
            var options = await CoreOptionsRepository.LoadAsync(CreateTestFile());

            Assert.That(options, Is.TypeOf(typeof(CoreOptions)));
            Assert.That(options.UseRequiredKeywords, Is.False);
        }
Exemple #2
0
        public void SaveAsync_ValidInput_DoesNotThrowException()
        {
            var testFile = Path.Combine(Path.GetTempPath(), Guid.NewGuid() + ".json");

            _paths.Add(testFile);
            Assert.That(async() => await CoreOptionsRepository.SaveAsync(_options, testFile), Throws.Nothing);
        }