EventArgsclass. Whilst there is some support for so-called custom events, they will not be part of this guide. Please refer to the Moq Quick Start section related to events for this scenario.
Objectproperty of the mock.
Sendmethod by passing any string.
"Hello world"string in the output stream.
Task. Moq's strong type system does not make a strong distinction between asynchronous methods and normal methods with a return type.