Is there an easier way to assert that the type of an argument is of a given type than the code below?
Here is the assertion... iLogger.AssertWasCalled(it => it.LogMessage(Arg<LogEntry>.Matches(Is.TypeOf<CustomLogEntry>()))); Here is the production code... LogEntry logEntry = new CustomLogEntry(data, null); logger.LogMessage(logEntry); I would like to simplify this expression.... Arg<LogEntry>.Matches(Is.TypeOf<CustomLogEntry>()) -- You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhinomocks?hl=en.
