コード例 #1
0
        public void XORWFVisualTest()
        {
            string expected = "XORWF ch";
            string actual   = CMDVisualise.XORWF(0x068C);

            Assert.AreEqual(expected, actual, "expected does not mach actual");
        }
コード例 #2
0
        public void ANDLWVisualTest()
        {
            string expected = "ANDLW 30h";
            string actual   = CMDVisualise.ANDLW(0x3930);

            Assert.AreEqual(expected, actual, "expected does not mach actual");
        }
コード例 #3
0
        public void ANDWFVisualTest()
        {
            string expected = "ANDWF ch, w";
            string actual   = CMDVisualise.ANDWF(0x050C);

            Assert.AreEqual(expected, actual, "expected does not mach actual");
        }
コード例 #4
0
        public void CLRWVisualTest()
        {
            string expected = "CLRW\t";
            string actual   = CMDVisualise.CLRW(0x0100);

            Assert.AreEqual(expected, actual, "expected does not mach actual");
        }
コード例 #5
0
        public void MOVFVisualTest()
        {
            string expected = "MOVF ch\t";
            string actual   = CMDVisualise.MOVF(0x088C);

            Assert.AreEqual(expected, actual, "expected does not mach actual");
        }
コード例 #6
0
        public void MOVLWVisualTest()
        {
            string expected = "MOVLW 11h";
            string actual   = CMDVisualise.MOVLW(0x3011);

            Assert.AreEqual(expected, actual, "expected does not mach actual");
        }
コード例 #7
0
        public void COMFVisualTest()
        {
            string expected = "COMF dh, w";
            string actual   = CMDVisualise.COMF(0x090D);

            Assert.AreEqual(expected, actual, "expected does not mach actual");
        }
コード例 #8
0
        public void VisualNOPTest()
        {
            CommandLine CL       = new CommandLine(0, 0);
            string      expected = "NOP\t";
            string      actual   = CMDVisualise.Befehlsstring(CL);

            Assert.AreEqual(expected, actual, "expected does not mach actual");
        }