Beispiel #1
0
        private void AssertCreateManySoldiers <TSoldier>() where TSoldier : ISoldier
        {
            const int numberOfSoldiers = 1000;

            var soldiers = (List <TSoldier>)MilitaryImperialComplex.CreateManySoldiers <TSoldier>(numberOfSoldiers);

            Assert.AreEqual(numberOfSoldiers, soldiers.Count);
        }
Beispiel #2
0
        public void CreateSoldier_Creates_IFootSoldier()
        {
            var soldier = MilitaryImperialComplex.CreateSoldier <IFootSoldier>();

            Assert.IsNotNull(soldier);
            Assert.IsTrue(soldier is SoldierBase);
            Assert.IsTrue(soldier is FootSoldier);
        }