예제 #1
0
        public void AddBulk_ArgsIsEnumerable()
        {
            TaskRunner        runner1 = new TaskRunner("Test1", () => { });
            TaskRunner        runner2 = new TaskRunner("Test2", () => { });
            List <TaskRunner> list    = new List <TaskRunner> {
                runner1,
                runner2
            };

            runners.AddBulk("SubBulk", true, list);

            BulkTaskRunner subBulk = runners[0] as BulkTaskRunner;

            subBulk.Count.Should().Be(2);
            subBulk.Contains(runner1).Should().BeTrue();
            subBulk.Contains(runner2).Should().BeTrue();
        }
예제 #2
0
        public void Contains_IsTrue()
        {
            TaskRunner runner = new TaskRunner("Test", () => { });

            runners.Add(runner);
            runners.Contains(runner);

            runners.Contains(runner).Should().BeTrue();
        }