コード例 #1
0
ファイル: QuestionTestTest.cs プロジェクト: GrainneMcD/MScApp
        public void QuestionTestPropertiesTest()
        {
            validQuestion = new Question()
            {
                ID = validQuestionID
            };
            validTest = new Test()
            {
                ID = validTestID
            };
            questionTest = new MScApp.Core.QuestionTest()
            {
                Question   = validQuestion,
                QuestionID = validQuestion.ID,
                Test       = validTest,
                TestID     = validTest.ID
            };


            Assert.NotNull(validTest);
            Assert.IsType <Test>(validTest);
            Assert.NotNull(validQuestion);
            Assert.IsType <Question>(validQuestion);

            Assert.Equal(validTest, questionTest.Test);
            Assert.Equal(validTestID, questionTest.TestID);
            Assert.Equal(validQuestion, questionTest.Question);
            Assert.Equal(validQuestionID, questionTest.QuestionID);
        }
コード例 #2
0
ファイル: QuestionTestTest.cs プロジェクト: GrainneMcD/MScApp
        public void QuestionTestConstructorTest()
        {
            questionTest = new MScApp.Core.QuestionTest();

            Assert.NotNull(questionTest);
            Assert.IsType <MScApp.Core.QuestionTest>(questionTest);
        }