Ejemplo n.º 1
0
        public void TestFilePass()
        {
            string relativePath = "..\\..\\TestFiles\\MOV045.MOI";
            MOIPathParser pathParser = new MOIPathParser(relativePath);
            pathParser.Parse();

            Assert.IsEmpty(pathParser.ParseErrors.ToList());
            Assert.IsNotEmpty(pathParser.ParsedMOIFiles.ToList());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Button event that does the parsing of the files and opens a form to display the results.
        /// </summary>
        private void btnGo_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                string moiPath = GetMoiPath();
                MOIPathParser moiParser = new MOIPathParser(moiPath);
                moiParser.Parse();

                DisplayParserResults(moiParser);
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, ex.Message + Environment.NewLine + ex.StackTrace, "ERROR", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
Ejemplo n.º 3
0
 public void TestNoFile()
 {
     string relativePath = "..\\..\\TestFiles\\NOTHERE.MOI";
     MOIPathParser pathParser = new MOIPathParser(relativePath);
     pathParser.Parse();
 }