public void CannotCreateBallWithNegativePrice() { Assert.Catch(() => { var x = new Ball("Test Ball", -100, Currency.EUR); }); }
public void CannotCreateBallWithEmptyDescription2() { Assert.Catch(() => { var x = new Ball("", 100, Currency.EUR); }); }
public void CanUpdateBallWithPrice() { var x = new Ball("Test Ball", 100, Currency.EUR); x.SetAttributes("New Name", 39.90m, Currency.EUR); Assert.IsTrue(x.Price.Amount == 39.90m); Assert.IsTrue(x.Price.Unit == Currency.EUR); }
public void CannotUpdateBallWithNegativePrice() { Assert.Catch(() => { var x = new Ball("Test Ball", 100, Currency.EUR); x.SetAttributes("New Name", -39.90m, Currency.EUR); }); }
public void CannotUpdateBallWithEmptyTitle2() { Assert.Catch(() => { var x = new Ball("Test Ball", 100, Currency.EUR); x.SetAttributes("", 39.90m, Currency.EUR); }); }
public void CanCreateBall() { var x = new Ball("Testball", 100, Currency.EUR); Assert.IsTrue(x.Description == "Testball"); Assert.IsTrue(x.Price.Amount == 100); Assert.IsTrue(x.Price.Unit == Currency.EUR); }