public void Jewellery_WhenWeightIsLessThanZero_ShouldThrowArgumentOutOfRange() { // arrange double WrongWeight = -3; double CorrectPrice = 2000; string JewelleryModel = "Golden ring"; //act Jewellery golden = new Jewellery(WrongWeight, CorrectPrice, JewelleryModel); // assert is handled by ExpectedException }
public void Jewellery_WhenJewelleryModelNamelHasName_ShouldThrowArgumentOutOfRange() { // arrange double CorrectWeight = -3; double CorrectPrice = 2000; string JewelleryModel = ""; //act Jewellery golden = new Jewellery(CorrectWeight, CorrectPrice, JewelleryModel); // assert is handled by ExpectedException }