Exemple #1
0
        public void NotPlacedOnAskedPosition()
        {
            var categoryQuestions = new CategoryQuestions("anything");

            categoryQuestions.PlacedOn(new[] { 5, 9 });
            Assert.False(categoryQuestions.IsPlacedOn(6));
        }
Exemple #2
0
        public QuestionDeck()
        {
            var pop = new CategoryQuestions("Pop");

            pop.PlacedOn(new[] { 0, 4, 8 });

            var science = new CategoryQuestions("Science");

            science.PlacedOn(new[] { 1, 5, 9 });

            var sports = new CategoryQuestions("Sports");

            sports.PlacedOn(new[] { 2, 6, 10 });

            var rock = new CategoryQuestions("Rock");

            rock.PlacedOn(new[] { 3, 7, 11 });

            categories = new List <CategoryQuestions>
            {
                pop,
                science,
                sports,
                rock
            };
        }
Exemple #3
0
        public void PlacedOnAskedPosition()
        {
            var categoryQuestions = new CategoryQuestions("anything");

            categoryQuestions.PlacedOn(new[] { 5, 9 });
            Assert.True(categoryQuestions.IsPlacedOn(5));
            Assert.True(categoryQuestions.IsPlacedOn(9));
        }