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); }
public void ReadsCommand() { var isReadCommand = CpuCommandFactory.Build("PUT KB M:0,0") is ReadCpuCommand readCpuCommand; Assert.IsTrue(isReadCommand); }