Ejemplo n.º 1
0
        public void String_should_not_be_define()
        {
            DefineLineAnalyzer analyzer = new DefineLineAnalyzer(A.Fake <IDefineRepository>());

            Assert.IsFalse(analyzer.ShouldHandle("LDA $4F"));
            Assert.IsFalse(analyzer.ShouldHandle("DEX"));
            Assert.IsFalse(analyzer.ShouldHandle("DCB $44 $36 $F3"));
            Assert.IsFalse(analyzer.ShouldHandle("LDA ($22),X"));
            Assert.IsFalse(analyzer.ShouldHandle("LDA ($F2D2,X)"));
        }
Ejemplo n.º 2
0
        public void String_should_be_define()
        {
            DefineLineAnalyzer analyzer = new DefineLineAnalyzer(A.Fake <IDefineRepository>());

            Assert.IsTrue(analyzer.ShouldHandle("define myVar $3F"));
            Assert.IsTrue(analyzer.ShouldHandle("define myVar 3"));
            Assert.IsTrue(analyzer.ShouldHandle("define myVar 24"));
            Assert.IsTrue(analyzer.ShouldHandle("define myVar $22"));
            Assert.IsTrue(analyzer.ShouldHandle("define myVar $FA"));
        }