public void CannotCreateDressWhereSizeBiggerThan48() { Assert.Catch(() => { var x = new Dirndl("Tiroler Dirndl", 50, 99.90m); }); }
public void CannotCreateDressWherePriceIsNegative() { Assert.Catch(() => { var x = new Dirndl("Tiroler Dirndl", 34, -1m); }); }
public void CannotCreateDressWhereSizeLessThan32() { Assert.Catch(() => { var x = new Dirndl("Tiroler Dirndl", 31, 99.90m); }); }
public void CannotCreateDressWhereNameIsNull() { Assert.Catch(() => { var x = new Dirndl(null, 37, 50.90m); }); }
public void CannotCreateDressWhereNameIsEmpty() { Assert.Catch(() => { var x = new Dirndl("", 37, 50.90m); }); }
private static void RunSerialization() { var d = new Dirndl("Marchegg Dirndl", 40, 49.90m); var e = new Abendkleid("Kleines Schwarzes", 42, 34.40m); d.Print(); e.Print(); foreach (var dress in Dresses) { Console.WriteLine(); dress.Print(); } Serialization.Run(Dresses); }