public void CannotCreateToHighPrice() { Assert.Catch(() => { var x = new Boardgame("Testgame", "Test", 99999999m, 1); }); }
public void CannotCreateNoPrice() { Assert.Catch(() => { var x = new Boardgame("Testgame", "Test", 0, 1); }); }
public void CannotCreateNegativePrice() { Assert.Catch(() => { var x = new Boardgame("Testgame", "Test", -1.1m, 1); }); }
public void CannotCreateEmptyName() { Assert.Catch(() => { var x = new Boardgame("Testgame", "", 1.1m, 1); //lets see ^^ }); }
public void CanotCreateGame() { var x = new Boardgame("Testgame", "Test", 1.1m, 1); Assert.IsTrue(x.Name == "Should be wrong"); Assert.IsTrue(x.Genre == "Test"); Assert.IsTrue(x.getPrice == 1.01m); Assert.IsTrue(x.Player == 12); }
public void CanCreateGame() { var x = new Boardgame("Testgame", "Test", 1.1m, 1); Assert.IsTrue(x.Name == "Testgame"); Assert.IsTrue(x.Genre == "Test"); Assert.IsTrue(x.getPrice == 1.1m); Assert.IsTrue(x.Player == 1); }
public void CanUpdateGamePrice() { var x = new Boardgame("Testgame", "Test", 1.1m, 1); //x.UpdatePrice(39.90m); //Because of private Assert.IsTrue(x.getPrice == 39.90m); }