mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
changed cardtype from list to enumset
This commit is contained in:
parent
c0ffc47bf7
commit
372584f7ad
22 changed files with 116 additions and 55 deletions
28
Mage/src/test/java/mage/ContinuousEffectImplTest.java
Normal file
28
Mage/src/test/java/mage/ContinuousEffectImplTest.java
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
package mage;
|
||||
|
||||
import mage.abilities.decorator.ConditionalContinuousEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.constants.DependencyType;
|
||||
import mage.constants.Duration;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.is;
|
||||
|
||||
/**
|
||||
* Created by IGOUDT on 25-2-2017.
|
||||
*/
|
||||
public class ContinuousEffectImplTest {
|
||||
|
||||
@Test
|
||||
public void isDependentTo(){
|
||||
BoostTargetEffect ghe = new BoostTargetEffect(0,0, Duration.Custom);
|
||||
ghe.setDependedToType(DependencyType.AuraAddingRemoving);
|
||||
Set<UUID> x = ghe.isDependentTo(new ArrayList<>());
|
||||
Assert.assertThat(x.size(), is(0));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue