-
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Imagine I have a type
public IExecutionProgress
{
event EventHandler<TestExecutionStartedEventArgs> TestExecutionStarting;
event EventHandler<TestExecutionStartedEventArgs> TestExecutionStarted;
event EventHandler<TestExecutionCompletedEventArgs> TestExecutionCompleting;
event EventHandler<TestExecutionCompletedEventArgs> TestExecutionCompleted;
}
public interface ITestExecutor : IExecutionProgress
{
}
public class Runner : ITestExecutor
{
}Doing something like
var runner = new TestRunner();
runner.Events().TestExecutionStarting.Subscribe(x={}); // Compilation error Events() returns NullEvents
(runner as IExecutionProgress).Events().TestExecutionStarting.Subscribe(x={}); // This worksschnerring and Elscrux
Metadata
Metadata
Assignees
Labels
No labels