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);
}
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);
}
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());
}
Aggregations