package jetbrains.mps.test.smodel;

/*Generated by MPS */

import jetbrains.mps.lang.test.generator.rt.BaseGeneratorTest;
import org.jetbrains.mps.openapi.model.SModel;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import jetbrains.mps.lang.test.generator.rt.TransformHelper;
import jetbrains.mps.lang.test.generator.rt.ModelAssert;
import jetbrains.mps.lang.test.generator.rt.MatchOptions;

public class IgnoreNodeOrderTest extends BaseGeneratorTest {



  private SModel myArg_IN;
  private SModel myArg_OUT;


  @BeforeEach
  public void prepareArguments() {
    myArg_IN = findModel("IN", "r:9e2eb6a3-9feb-4149-9dda-889f02c65334(jetbrains.mps.test.smodel.data2)");
    myArg_OUT = findModel("OUT", "r:cda9f2b4-efae-4c0c-996c-6a34ae3da753(jetbrains.mps.test.smodel.refdata3)");
  }

  @Test
  public void testTransformAndMatch0() {
    TransformHelper t = newTransformer();
    SModel i = myArg_IN;
    t.setInput(i);
    t.transform();
    SModel rm = myArg_OUT;
    ModelAssert ma = new ModelAssert(t.getResult().getOutputRepository(), MatchOptions.PROPERTY_USER_VALUE, MatchOptions.AGGREGATION_ANY_ORDER);
    ma.assertMatch(t.getOutputModel(), rm);
  }

}
