Example #1
0
        public void TestGood1659File()
        {
            SanityChecker sc = new SanityChecker(@"..\..\..\70479A1659.CNC", @"1659");

            sc.Check();
            Assert.IsTrue(sc.OK);
        }
Example #2
0
        public void TestGood2147File()
        {
            SanityChecker sc = new SanityChecker(@"..\..\..\126754B2147.CNC", @"2147");

            sc.Check();
            Assert.IsTrue(sc.OK);
        }
Example #3
0
        public void TestBad2147File()
        {
            SanityChecker sc = new SanityChecker(@"..\..\..\70590A1659.CNC", @"2147");

            sc.Check();
            Assert.IsFalse(sc.OK);
        }
Example #4
0
        public void TestBad1659File()
        {
            SanityChecker sc = new SanityChecker(@"..\..\..\126761B2147.CNC", @"1659");

            sc.Check();
            Assert.IsFalse(sc.OK);
        }
Example #5
0
        public void TestCouldNotParse()
        {
            SanityChecker sc = new SanityChecker(@"..\..\..\test.CNC", @"2147");

            sc.Check();
            Assert.IsTrue(sc.OK);
            Assert.IsFalse(sc.SuccessfullyParsed);
        }