void FromResultThrows(Boolean result, String instruction, String message, String paramName) { ITestEntry entry = default; TestX.If.Action.ThrowsException(() => entry = TestEntry.FromResult(result, instruction, message), out ArgumentException argEx); TestX.If.Value.IsEqual(argEx.ParamName, paramName); TestX.If.Object.IsNull(entry); }
void FromResult(Boolean result, String instruction, String message, EntryTypes expected_type, String expected_instruction, String expected_message) { ITestEntry entry = default; TestX.IfNot.Action.ThrowsException(() => entry = TestEntry.FromResult(result, instruction, message), out Exception ex); TestX.IfNot.Object.IsNull(entry); TestX.If.Value.IsEqual(entry.EntryType, expected_type); TestX.If.Value.IsEqual(entry.Instruction, expected_instruction); TestX.If.Value.IsEqual(entry.Message, expected_message); }
public void AddResult(Boolean result, String testInstruction, String message, String _file, String _method) => AddEntry(TestEntry.FromResult(result, testInstruction, message), _file, _method);