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