public void NotRecastableWhenOnRecast(AbilityType abilityType) { ability.AbilityType = abilityType; var memoryApi = new FakeMemoryAPI(); memoryApi.Timer = new FakeTimer() { ActionRecast = 1 }; var result = AbilityUtils.IsRecastable(memoryApi, ability); Assert.False(result); }
public void IsRecastableWhenNotOnRecast(AbilityType abilityType) { ability.AbilityType = abilityType; var memoryApi = new FakeMemoryAPI(); memoryApi.Timer = new FakeTimer(); var result = AbilityUtils.IsRecastable(memoryApi, ability); Assert.True(result); }
public IMemoryAPI FindMemoryApi() { var memoryAPI = new FakeMemoryAPI(); memoryAPI.Player = player; memoryAPI.Timer = timer; return memoryAPI; }