Ejemplo n.º 1
0
        public void GenerateMatchingTest()
        {
            var exercises = new TestBuilder(testCards, new RandomCardsSelector())
                            .WithGenerator(new MatchingQuestionExerciseGenerator(), 3)
                            .Build();

            Assert.That(exercises.Count(), Is.EqualTo(3));
            Assert.That(exercises.Select(ex => ex.Question),
                        Has.All.InstanceOf <MatchingQuestion>());
        }