public void FindComponentId_ReturnCorrectIdentifier_WhenNotExists() { var array = new int[10] { 0, 1, 1, 8, 8, 0, 0, 1, 8, 8 }; var connector = new QFDynamicConnector(array); Assert.Throws <InvalidOperationException>(() => connector.FindComponentId(111)); }
public void FindComponentIdIdentifier_ReturnCorrectIdentifier_WhenExists() { var array = new int[10] { 0, 1, 1, 8, 8, 0, 0, 1, 8, 8 }; var connector = new QFDynamicConnector(array); var componentId = connector.FindComponentId(2); Assert.AreEqual(componentId, array[2]); }