void FromNoteThrows(String message, String paramName) { ITestEntry entry = default; TestX.If.Action.ThrowsException(() => entry = TestEntry.FromNote(message), out ArgumentException argEx); TestX.If.Value.IsEqual(argEx.ParamName, paramName); TestX.If.Object.IsNull(entry); }
void FromNote(String message, EntryTypes expected_type, String expected_instruction, String expected_message) { ITestEntry entry = default; TestX.IfNot.Action.ThrowsException(() => entry = TestEntry.FromNote(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 AddNote(String message, String _file, String _method) => AddEntry(TestEntry.FromNote(message), _file, _method);