public void NewDoTask_DefaultTaskNameAnonymousMethod_IsMethodName() { var task = new DoTaskForTests((c) => { return; }); Assert.Equal("<NewDoTask_DefaultTaskNameAnonymousMethod_IsMethodName>b__1_0", task.GetTaskName()); }
public void NewDoTask_DefaultTaskName_IsMethodName() { var task = new DoTaskForTests(SomeMethodName); Assert.Equal("SomeMethodName", task.GetTaskName()); }