Esempio n. 1
0
        public static IReadOnlyCollection <CpuCommand> ReadCpuCommands(IReadOnlyCollection <string> strs)
        {
            var commands = new List <CpuCommand>();

            foreach (var str in strs)
            {
                commands.Add(CpuCommandFactory.Build(str));
            }
            return(commands);
        }
Esempio n. 2
0
        public void ReadsCommand()
        {
            var isReadCommand = CpuCommandFactory.Build("PUT KB M:0,0") is ReadCpuCommand readCpuCommand;

            Assert.IsTrue(isReadCommand);
        }