public void GetOfType_FreshList_ReturnNull() { var owner = NewFakeLiving(); var effectList = new GameEffectList(owner); IGameEffect actual = effectList.GetOfType <GameSpellEffect>(); Assert.AreEqual(null, actual); }
public void GetOfType_ListWithOneItemOfGivenType_ReturnListWithThatOneItem() { GameEffectList effectList = NewGameEffectList(); var effect = new GameSpellEffect(null, 0, 0); effectList.Add(effect); IGameEffect actual = effectList.GetOfType <GameSpellEffect>(); Assert.IsNotNull(actual); }