public void ClearBots_NoArguments_BotsCountZero() { var target = new WorldContext(); var bot1 = MockRepository.GenerateMock <IBot> (); bot1.Expect(b => b.Name).Return("b1"); var ability1 = MockRepository.GenerateMock <IOneBotAbility>(); var bot2 = MockRepository.GenerateMock <IBot> (); bot2.Expect(b => b.Name).Return("b2"); var ability2 = MockRepository.GenerateMock <ITwoBotAbility>(); target.AddBot(bot1, ability1); target.AddBot(bot2, ability2); Assert.AreEqual(2, target.BotsCount); target.ClearBots(); Assert.AreEqual(0, target.BotsCount); }