Inheritance: IMemoryAPI
Example #1
0
 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);
 }
Example #2
0
 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);
 }
Example #3
0
 public IMemoryAPI FindMemoryApi()
 {
     var memoryAPI = new FakeMemoryAPI();
     memoryAPI.Player = player;
     memoryAPI.Timer = timer;
     return memoryAPI;
 }