public void ContainsComponentInComposite2() { var sut = new TaskComposite(arbitraryName); var component = new Mock <ITaskComponent>().Object; sut.Add(component); Assert.True(sut.Contains(component)); }
public void ContainsComponentInComposite1() { var component = new Mock <ITaskComponent>().Object; var sut = new TaskComposite(arbitraryName, components: new List <ITaskComponent> { component }); Assert.True(sut.Contains(component)); }