コード例 #1
0
        public static void Main(string[] args)
        {
            RemoteController remoteController = new RemoteController();

            while (true)
            {
                string output = remoteController.Call(Console.ReadLine());
                Console.WriteLine(output);
            }

            Console.ReadLine();
        }
コード例 #2
0
        void TestRemoteController(string[] commands, string[] expectedOutput)
        {
            var rc = new RemoteController();

            foreach (var command in commands)
            {
                rc.Call(command);
            }

            var optionsShowParts = rc.Call("Options show").Split('\n');

            Assert.AreEqual(expectedOutput.Length, optionsShowParts.Length);
            Assert.AreEqual(expectedOutput, optionsShowParts);
        }
コード例 #3
0
 public OptionsShower(RemoteController remoteController)
 {
     _remoteController = remoteController;
 }
コード例 #4
0
 public ChangeSettings(RemoteController rc) : base(rc)
 {
 }
コード例 #5
0
 public ShowOptions(RemoteController rc) : base(rc)
 {
 }
コード例 #6
0
 public TvOnOff(RemoteController rc) : base(rc)
 {
 }
コード例 #7
0
 protected Function(RemoteController rc)
 {
     Rc = rc;
 }