public static void AssertResult(ReturnValue result) { if (!result.Success) { Assert.Fail(result.ToString()); } }
protected bool ShowStatus(ReturnValue result, string context) { if (!result.Success) { MessageBox.Show(result.ToString(), context, MessageBoxButtons.OK, MessageBoxIcon.Error); ShowStatus(string.Format("{0} failed.", context), Color.Red); Debug.WriteLine(result); } ShowStatus(string.Format("{0} complete.", context)); return result.Success; }