Example #1
0
        public void NewDoTask_DefaultTaskNameAnonymousMethod_IsMethodName()
        {
            var task = new DoTaskForTests((c) => { return; });

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

            Assert.Equal("SomeMethodName", task.GetTaskName());
        }