public void AddComponentToComposite()
        {
            var sut       = new TaskComposite(arbitraryName);
            var component = new Mock <ITaskComponent>().Object;

            sut.Add(component);

            Assert.True(sut.Any(tc => tc == component));
        }
        public void RemoveComponentFromComposite2()
        {
            var sut       = new TaskComposite(arbitraryName);
            var component = new Mock <ITaskComponent>().Object;

            sut.Add(component);
            sut.Remove(component);

            Assert.False(sut.Any(tc => tc == component));
        }
        public void RemoveComponentFromComposite1()
        {
            var component = new Mock <ITaskComponent>().Object;
            var sut       = new TaskComposite(arbitraryName, components: new List <ITaskComponent> {
                component
            });

            sut.Remove(component);

            Assert.False(sut.Any(tc => tc == component));
        }
        public void ComponentsIsCorrect4()
        {
            var sut = new TaskComposite(arbitraryName, arbitraryDescription, new List <ITaskComponent>());

            Assert.False(sut.Any());
        }
        public void ComponentsIsCorrect3()
        {
            var sut = new TaskComposite(arbitraryName, components: new List <ITaskComponent>());

            Assert.False(sut.Any());
        }
        public void ComponentsIsCorrect1()
        {
            var sut = new TaskComposite(arbitraryName);

            Assert.False(sut.Any());
        }