示例#1
0
        public void CuriousQuizController()
        {
            //Act
            var actual = new CuriousQuizController(_curiousityQuizBusinessLogic.Object);

            //Assert
            Assert.IsNotNull(actual);
            Assert.IsInstanceOf <CuriousQuizController>(actual);
        }
示例#2
0
        public void CuriousQuizController_saveCuriosQuizAttempts()
        {
            //Act
            var actual = new CuriousQuizController(_curiousityQuizBusinessLogic.Object);
            var curiousQuizAttempts = new List <CuriousQuizAttempts>();
            var target = actual.saveCuriosQuizAttempts(curiousQuizAttempts);

            //Assert
            Assert.IsNotNull(target);
            Assert.AreEqual(200, ((ObjectResult)target).StatusCode);
        }