private MethodInfo GetMethod(string methodName) { if (string.IsNullOrWhiteSpace(methodName)) { Assert.Fail("methodName cannot be null or whitespace"); } var method = _gameBox.GetType().GetMethod(methodName, BindingFlags.NonPublic | BindingFlags.Instance); if (method == null) { Assert.Fail(string.Format("{0} method not found", methodName)); } return(method); }