public void Test_GetConditionTrack_ByID_BadResult() { int intConditionTrackID = 0; ConditionTrack objConditionTrack = new ConditionTrack(); objConditionTrack.GetConditionTrack(intConditionTrackID); Assert.IsNull(objConditionTrack.Description); }
public void Test_GetConditionTrack_ByName_BadResult() { string strConditionTrackName = "blah blah"; ConditionTrack objConditionTrack = new ConditionTrack(); objConditionTrack.GetConditionTrack(strConditionTrackName); Assert.IsNull(objConditionTrack.Description); }
public void Test_GetConditionTrack_ByID_GoodResult() { int intConditionTrackID = 1; ConditionTrack objConditionTrack = new ConditionTrack(); objConditionTrack.GetConditionTrack(intConditionTrackID); Assert.AreEqual(intConditionTrackID, objConditionTrack.ConditionTrackID); }
public void Test_GetConditionTrack_ByName_GoodResult() { string strConditionTrackName = "Normal"; ConditionTrack objConditionTrack = new ConditionTrack(); objConditionTrack.GetConditionTrack(strConditionTrackName); Assert.AreEqual(strConditionTrackName, objConditionTrack.Description); }