Example #1
0
        public void EmulateAValidGcodeProgram(string filename)
        {
            var src      = EmbeddedFixture.ExtractFile(filename);
            var emulator = new Emulator();

            emulator.Run(src);
        }
        public void the_embedded_section_should_have_metadata_for_the_leaf_name_and_fixture_name()
        {
            var fixture = new EmbeddedFixture();
            var grammar = fixture["EmbeddedMath"].As <EmbeddedSectionGrammar <MathFixture> >();

            theSectionNode.MetaData(GrammarConstants.FIXTURE).ShouldEqual(typeof(MathFixture).GetFixtureAlias());
            theSectionNode.MetaData(GrammarConstants.LEAF_NAME).ShouldEqual(grammar.LeafName());
        }