Exemplo n.º 1
0
 public void ModifyTest()
 {
     using (var input = File.OpenRead(@"Slic3rToBaseTestData\test1.g")) {
         using (var output = File.Create(@"Slic3rToBaseTestData\output1.g")) {
             var process = new Slic3rToBase();
             process.SpeedZ = 30;
             Assert.AreEqual(process.Modify(input, output), true);
         }
     }
     SupportClass.AreEqualText(@"Slic3rToBaseTestData\result1.g", @"Slic3rToBaseTestData\output1.g");
 }
Exemplo n.º 2
0
        public void update2FlashPrint()
        {
            var parameter = new ToAdventurer3Parameter();

            parameter.PlayRemovalLength = 0.5;
            using (var input = File.OpenRead(@"ToAdventurer3TestData\test1.gx")) {
                using (var output = File.Create(@"ToAdventurer3TestData\output2.gx")) {
                    var process = new ToAdventurer3();
                    process.Parameter = parameter;
                    Assert.AreEqual(process.Modify(input, output), true);
                }
            }
            SupportClass.AreEqualText(@"ToAdventurer3TestData\output2.gx", @"ToAdventurer3TestData\result2.gx");
        }