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

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

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