Beispiel #1
0
        public void AddItemWorkCentre()
        {
            WorkCentre workCentre = new WorkCentre("Work Centre");

            Assert.Throws <ArgumentException>(() => workCentre.AddItem(new WorkCentre("My Work Centre")));
        }
Beispiel #2
0
        public void AddItemNull()
        {
            WorkCentre workCentre = new WorkCentre("Work Centre");

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