Beispiel #1
0
 public void SeriennumNotEmpty()
 {
     Assert.Catch(() =>
     {
         var computer = new Notebooks("E751", 700, "");
     });
 }
Beispiel #2
0
 public void SeriennumNotNULL()
 {
     Assert.Catch(() =>
     {
         var computer = new Notebooks("E751", 700, null);
     });
 }
Beispiel #3
0
 public void ModellnummNotNULL()
 {
     Assert.Catch(() =>
     {
         var computer = new Notebooks(null, 700, "SLN78");
     });
 }
Beispiel #4
0
 public void N_PreisNotSmallerThanNULL()
 {
     Assert.Catch(() =>
     {
         var computer = new Notebooks("E751", -700, "SLN78");
     });
 }
Beispiel #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");
        }