示例#1
0
        public void Generate_Floats()
        {
            var displayGenerator = new Bk2InputDisplayGenerator("NES", _axisController);
            var actual           = displayGenerator.Generate();

            Assert.AreEqual("    0,    0,", actual);
        }
示例#2
0
        public void Generate_MidRangeDisplaysEmpty()
        {
            _axisController.AcceptNewAxis("StickX", MidValue);
            var displayGenerator = new Bk2InputDisplayGenerator("NES", _axisController);
            var actual           = displayGenerator.Generate();

            Assert.AreEqual("          0,", actual);
        }
示例#3
0
        public void Generate_BoolUnPressed_GeneratesSpace()
        {
            _boolController["A"] = false;
            var displayGenerator = new Bk2InputDisplayGenerator("NES", _boolController);
            var actual           = displayGenerator.Generate();

            Assert.AreEqual(" ", actual);
        }
示例#4
0
        public void Generate_BoolPressed_GeneratesMnemonic()
        {
            _boolController["A"] = true;
            var displayGenerator = new Bk2InputDisplayGenerator("NES", _boolController);
            var actual           = displayGenerator.Generate();

            Assert.AreEqual("A", actual);
        }