public void Test_GetWeaponType_ByID_BadResult() { int intWeaponTypeID = 0; WeaponType objWeaponType = new WeaponType(); objWeaponType.GetWeaponType(intWeaponTypeID); Assert.IsNull(objWeaponType.WeaponTypeDescription); }
public void Test_GetWeaponType_ByName_BadResult() { string strWeaponTypeName = "blah blah"; WeaponType objWeaponType = new WeaponType(); objWeaponType.GetWeaponType(strWeaponTypeName); Assert.IsNull(objWeaponType.WeaponTypeDescription); }
public void Test_GetWeaponType_ByID_GoodResult() { int intWeaponTypeID = 1; WeaponType objWeaponType = new WeaponType(); objWeaponType.GetWeaponType(intWeaponTypeID); Assert.AreEqual(intWeaponTypeID, objWeaponType.WeaponTypeID); }
public void Test_GetWeaponType_ByName_GoodResult() { string strWeaponTypeName = "Simple"; WeaponType objWeaponType = new WeaponType(); objWeaponType.GetWeaponType(strWeaponTypeName); Assert.AreEqual(strWeaponTypeName, objWeaponType.WeaponTypeDescription); }
public static WeaponType ConvertWeaponType(int i) { return(WeaponType.GetWeaponType(i)); }