public void get_instructions_from_instruction_array() { var inputList = new [] { "cpy 50 a", "inc a" }; var factory = new InstructionFactory(); IInstruction[] instructionList = factory.CreateForList(inputList); Assert.AreEqual(inputList.Length, instructionList.Length); Assert.IsInstanceOf <CopyValueToRegisterInstruction>(instructionList[0]); Assert.IsInstanceOf <IncrementInstruction>(instructionList[1]); }