示例#1
0
        public async void LoadBatchTest()
        {
            var firstBatch  = (await _loader.LoadRandomBatch(2)).ToList();
            var secondBatch = (await _loader.LoadRandomBatch(2)).ToList();

            Assert.NotEqual(firstBatch[0].Word, secondBatch[0].Word);
            Assert.NotEqual(firstBatch[1].Word, secondBatch[1].Word);
        }
示例#2
0
 private async Task LoadNewBatch()
 {
     _words.Clear();
     _wordIndex = 0;
     _words.AddRange(await _wordsLoader.LoadRandomBatch(BatchSize));
     _runsDone.Clear();
     _paragraph.Inlines.Clear();
 }