コード例 #1
0
        public void Test_GetConditionTrack_ByID_BadResult()
        {
            int            intConditionTrackID = 0;
            ConditionTrack objConditionTrack   = new ConditionTrack();

            objConditionTrack.GetConditionTrack(intConditionTrackID);

            Assert.IsNull(objConditionTrack.Description);
        }
コード例 #2
0
        public void Test_GetConditionTrack_ByName_BadResult()
        {
            string         strConditionTrackName = "blah blah";
            ConditionTrack objConditionTrack     = new ConditionTrack();

            objConditionTrack.GetConditionTrack(strConditionTrackName);

            Assert.IsNull(objConditionTrack.Description);
        }
コード例 #3
0
        public void Test_GetConditionTrack_ByID_GoodResult()
        {
            int            intConditionTrackID = 1;
            ConditionTrack objConditionTrack   = new ConditionTrack();

            objConditionTrack.GetConditionTrack(intConditionTrackID);

            Assert.AreEqual(intConditionTrackID, objConditionTrack.ConditionTrackID);
        }
コード例 #4
0
        public void Test_GetConditionTrack_ByName_GoodResult()
        {
            string         strConditionTrackName = "Normal";
            ConditionTrack objConditionTrack     = new ConditionTrack();

            objConditionTrack.GetConditionTrack(strConditionTrackName);

            Assert.AreEqual(strConditionTrackName, objConditionTrack.Description);
        }