示例#1
0
        public void Get_Mil_Education_Profile_Is_Not_Null()
        {
            for (int i = 0; i < 100; i++)
            {
                var rank = MilitaryRanks.GetRank();

                /*
                 * rank.Pay = "O-6";
                 * rank.MOSID = "4400";
                 * rank.Branch = Enums.MilitaryBranch.USAF;
                 */
                Assert.IsNotNull(Education.GetMilEducationProfile(rank));
            }
        }
示例#2
0
        public void Get_By_Branch_Returns_A_Rank()
        {
            var b = MilitaryBranch.USMC;
            var o = MilitaryRanks.GetRankByBranch(b);

            Assert.IsTrue(o.Branch.ToString() == b.ToString());

            /* // if we want to test probability spread
             * for (int i = 0; i < 100000; i++)
             * {
             *  var o = MilitaryRank.GetRankByBranch("USMC");
             *  Console.WriteLine($"{o.Pay}\t{o.Name}");
             * }
             */
        }
示例#3
0
        public void Get_Returns_A_Rank()
        {
            var o = MilitaryRanks.GetRank();

            Assert.IsTrue(!string.IsNullOrEmpty(o.Name));
        }
示例#4
0
        public void Get_All_Returns_An_Object()
        {
            var o = MilitaryRanks.GetAll();

            Assert.IsTrue(o.Branches.Count == 5);
        }