public object InternalGetSetupResultAt(TestPosition position)
 {
     try
     {
         return(_setupResults.First(kvp => kvp.Key != null && kvp.Key.Equals(position)).Value);
     }
     catch (Exception e)
     {
         throw new InvalidProgramException(String.Format("Could not find setup result for position {0}, had results for {1}.",
                                                         position.ToString() ?? "null", String.Join(", ", _setupResults.Select(sr => sr.Key.ToString()).ToArray())), e);
     }
 }
 public object InternalGetSetupResultAt(TestPosition position)
 {
     try
     {
         return _setupResults.First(kvp => kvp.Key != null && kvp.Key.Equals(position)).Value;
     }
     catch (Exception e)
     {
         throw new InvalidProgramException(String.Format("Could not find setup result for position {0}, had results for {1}.",
             position.ToString() ?? "null", String.Join(", ", _setupResults.Select(sr => sr.Key.ToString()).ToArray())), e);
     }
 }
 public bool TestIsAtPosition(TestPosition position)
 {
     return(position.ToString() == _targetTestPosition.ToString());
 }