public void TestInput() { string[] lines = { "A: INPUT_HIGH;", "B: INPUT_LOW;", "Cin: INPUT_HIGH;", "A0: INPUT_LOW;", "A1: INPUT_HIGH;" }; string[] expectedKeys = { "A", "B", "Cin", "A0", "A1" }; string[] expectedValues = { "INPUT_HIGH", "INPUT_LOW", "INPUT_HIGH", "INPUT_LOW", "INPUT_HIGH" }; String[] circuitParts; int i = 0; foreach (string line in lines) { circuitParts = fp.GetCircuitParts(line); Assert.AreEqual(circuitParts[0], expectedKeys[i]); Assert.AreEqual(circuitParts[1], expectedValues[i]); i++; } }