Exemplo n.º 1
0
        public void TestToString()
        {
            Area area = new Area("My Area");

            Assert.That(area.ToString(), Is.EqualTo("Area 'My Area'"));

            area.Area1.AddArea("Area 1");
            Assert.That(area.ToString(), Is.EqualTo("Area 'My Area'"));

            area.WorkCentre.AddWorkCentre("Work Centre 1");
            Assert.That(area.ToString(), Is.EqualTo("Area 'My Area'"));
        }
Exemplo n.º 2
0
        public void TestToString()
        {
            Area area = new Area("My Area");
            Assert.That(area.ToString(), Is.EqualTo("Area 'My Area'"));

            area.Area1.AddArea("Area 1");
            Assert.That(area.ToString(), Is.EqualTo("Area 'My Area'"));

            area.WorkCentre.AddWorkCentre("Work Centre 1");
            Assert.That(area.ToString(), Is.EqualTo("Area 'My Area'"));
        }