forked from External/mage
27 lines
702 B
Java
27 lines
702 B
Java
package mage;
|
|
|
|
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));
|
|
}
|
|
}
|