Search in sources :

Example 1 with FreeformUnlimitedCommanderMatch

use of mage.game.FreeformUnlimitedCommanderMatch in project mage by magefree.

the class FreeformUnlimitedCommanderMatchTest method test_getOptions_returnsOriginalOptions.

@Test
public void test_getOptions_returnsOriginalOptions() {
    // Arrange
    MatchOptions options = new MatchOptions("test name", "test match name", false, 2);
    Match match = new FreeformUnlimitedCommanderMatch(options);
    // Act
    MatchOptions actual = match.getOptions();
    // Assert
    Assert.assertEquals(options, actual);
}
Also used : MatchOptions(mage.game.match.MatchOptions) FreeformUnlimitedCommanderMatch(mage.game.FreeformUnlimitedCommanderMatch) FreeformUnlimitedCommanderMatch(mage.game.FreeformUnlimitedCommanderMatch) Match(mage.game.match.Match) Test(org.junit.Test)

Example 2 with FreeformUnlimitedCommanderMatch

use of mage.game.FreeformUnlimitedCommanderMatch in project mage by magefree.

the class FreeformUnlimitedCommanderMatchTest method test_getName_returnsTestName.

@Test
public void test_getName_returnsTestName() {
    // Arrange
    MatchOptions options = new MatchOptions("test name", "test match name", false, 2);
    Match match = new FreeformUnlimitedCommanderMatch(options);
    // Act
    String actual = match.getName();
    // Assert
    Assert.assertEquals("test name", actual);
}
Also used : MatchOptions(mage.game.match.MatchOptions) FreeformUnlimitedCommanderMatch(mage.game.FreeformUnlimitedCommanderMatch) FreeformUnlimitedCommanderMatch(mage.game.FreeformUnlimitedCommanderMatch) Match(mage.game.match.Match) Test(org.junit.Test)

Example 3 with FreeformUnlimitedCommanderMatch

use of mage.game.FreeformUnlimitedCommanderMatch in project mage by magefree.

the class FreeformUnlimitedCommanderMatchTest method test_construct_returnsFreeformPlusCommanderMatch.

@Test
public void test_construct_returnsFreeformPlusCommanderMatch() {
    // Arrange
    MatchOptions options = new MatchOptions("test name", "test match name", false, 2);
    // Act
    Match match = new FreeformUnlimitedCommanderMatch(options);
    // Assert
    Assert.assertEquals(FreeformUnlimitedCommanderMatch.class, match.getClass());
}
Also used : MatchOptions(mage.game.match.MatchOptions) FreeformUnlimitedCommanderMatch(mage.game.FreeformUnlimitedCommanderMatch) FreeformUnlimitedCommanderMatch(mage.game.FreeformUnlimitedCommanderMatch) Match(mage.game.match.Match) Test(org.junit.Test)

Aggregations

FreeformUnlimitedCommanderMatch (mage.game.FreeformUnlimitedCommanderMatch)3 Match (mage.game.match.Match)3 MatchOptions (mage.game.match.MatchOptions)3 Test (org.junit.Test)3