예제 #1
0
        private void Assemble_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            var filePath = DockingService.ActiveDocument.FilePath;
            //TODO: replace with a file extension specified by the user
            var outputPath = FilePath.ChangeExtention(filePath, ".8xk");

            AssemblerService.AssembleFile(filePath, outputPath, null, AssemblyFlags.Assemble,
                                          (outputText) =>
            {
                DockingService.OutputWindow.ClearText();
                DockingService.OutputWindow.AddText(outputText);
            });
        }
        public void AssembleFileTest()
        {
            AssemblerService target     = new AssemblerService(); // TODO: Initialize to an appropriate value
            FilePath         inputPath  = null;                   // TODO: Initialize to an appropriate value
            FilePath         outputPath = null;                   // TODO: Initialize to an appropriate value
            IList <IDefine>  defines    = null;                   // TODO: Initialize to an appropriate value
            AssemblyFlags    flags      = new AssemblyFlags();    // TODO: Initialize to an appropriate value
            Action <string>  callback   = null;                   // TODO: Initialize to an appropriate value
            bool             expected   = false;                  // TODO: Initialize to an appropriate value
            bool             actual;

            actual = target.AssembleFile(inputPath, outputPath, defines, flags, callback);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }