public void EmptyProject()
        {
            Project project = Project.Empty();

            Assert.That(project.Items, Is.Empty);
            Assert.That(project.GetCount(), Is.EqualTo(0));
        }
        public void AddItemEnterprise()
        {
            Project project = Project.Empty();

            project.AddItem(new Equipment("My Enterprise"));

            Assert.That(project.Items, Is.Not.Empty);
            Assert.That(project.Items[0].Name, Is.EqualTo("My Enterprise"));

            Assert.DoesNotThrow(() => project.AddItem(new Equipment("Another Enterprise")));
        }
        public void TestToString()
        {
            Project project = Project.Empty();

            Assert.That(project.ToString(), Is.EqualTo("Project (0 items)"));

            Equipment enterprise = project.Items.AddEquipment("Enterprise");

            Assert.That(project.ToString(), Is.EqualTo("Project (1 item)"));

            enterprise.Items.AddEquipment("Site 1");
            Assert.That(project.ToString(), Is.EqualTo("Project (2 items)"));
        }
        public void AddItemWorkCentre()
        {
            Project project = Project.Empty();

            Assert.DoesNotThrow(() => project.AddItem(new Equipment("WorkCentre")));
        }
        public void AddItemArea()
        {
            Project project = Project.Empty();

            Assert.DoesNotThrow(() => project.AddItem(new Equipment("Area 1")));
        }
        public void AddItemNull()
        {
            Project project = Project.Empty();

            Assert.Throws <ArgumentNullException>(() => project.AddItem(null));
        }