Esempio n. 1
0
        public void Test_GetWeaponType_ByID_BadResult()
        {
            int        intWeaponTypeID = 0;
            WeaponType objWeaponType   = new WeaponType();

            objWeaponType.GetWeaponType(intWeaponTypeID);

            Assert.IsNull(objWeaponType.WeaponTypeDescription);
        }
Esempio n. 2
0
        public void Test_GetWeaponType_ByName_BadResult()
        {
            string     strWeaponTypeName = "blah blah";
            WeaponType objWeaponType     = new WeaponType();

            objWeaponType.GetWeaponType(strWeaponTypeName);

            Assert.IsNull(objWeaponType.WeaponTypeDescription);
        }
Esempio n. 3
0
        public void Test_GetWeaponType_ByID_GoodResult()
        {
            int        intWeaponTypeID = 1;
            WeaponType objWeaponType   = new WeaponType();

            objWeaponType.GetWeaponType(intWeaponTypeID);

            Assert.AreEqual(intWeaponTypeID, objWeaponType.WeaponTypeID);
        }
Esempio n. 4
0
        public void Test_GetWeaponType_ByName_GoodResult()
        {
            string     strWeaponTypeName = "Simple";
            WeaponType objWeaponType     = new WeaponType();

            objWeaponType.GetWeaponType(strWeaponTypeName);

            Assert.AreEqual(strWeaponTypeName, objWeaponType.WeaponTypeDescription);
        }
Esempio n. 5
0
 public static WeaponType ConvertWeaponType(int i)
 {
     return(WeaponType.GetWeaponType(i));
 }