Пример #1
0
 public void SeriennumNotEmpty()
 {
     Assert.Catch(() =>
     {
         var computer = new Notebooks("E751", 700, "");
     });
 }
Пример #2
0
 public void SeriennumNotNULL()
 {
     Assert.Catch(() =>
     {
         var computer = new Notebooks("E751", 700, null);
     });
 }
Пример #3
0
 public void ModellnummNotNULL()
 {
     Assert.Catch(() =>
     {
         var computer = new Notebooks(null, 700, "SLN78");
     });
 }
Пример #4
0
 public void N_PreisNotSmallerThanNULL()
 {
     Assert.Catch(() =>
     {
         var computer = new Notebooks("E751", -700, "SLN78");
     });
 }
Пример #5
0
        public void simpleTest()
        {
            var computer = new Notebooks("E751", 700, "SLN78");

            Assert.IsTrue(computer.Modell == "E751");
            Assert.IsTrue(computer.N_Preis == 700);
            Assert.IsTrue(computer.Seriennum == "SLN78");
        }