public void If_no_task_was_registered_more_than_once_it_should_not_generate_error_messages()
        {
            var validator = new CheckForMultipleTimesRegisteredTasks();

            var tasks = new[]
            {
                new RegisteredTask(typeof (ExampleTask1)),
                new RegisteredTask(typeof (ExampleTask2))
            };

            var errors = validator.Validate(tasks).ToList();

            Assert.IsEmpty(errors);
        }
        public void If_a_task_was_registered_more_than_once_it_should_generate_a_error_message()
        {
            var validator = new CheckForMultipleTimesRegisteredTasks();

            var tasks = new[]
            {
                new RegisteredTask(typeof (ExampleTask1)),
                new RegisteredTask(typeof (ExampleTask1))
            };

            var errors = validator.Validate(tasks).ToList();
            
            Assert.IsNotEmpty(errors);
            Assert.IsTrue(errors[0].Contains($"\"{nameof(ExampleTask1)}\""));
        }