Exemplo n.º 1
0
        public void AssembledTestletHasPretestForFirstTwoItems()
        {
            // first two items are always Pretest items
            // SUT is testBuilder.AssembleSingleTestlet();

            Testlet testlet = testBuilder.AssembleTestlet(testBank.GetTestletQuestionSetRandomly());

            Assert.True(testlet.Questions.Take(2).All(q => q.IsPretest == true));

            testlet = testBuilder.AssembleTestlet(testBank.GetTestletQuestionSetSequentially());
            Assert.True(testlet.Questions.Take(2).All(q => q.IsPretest == true));
        }