예제 #1
0
        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
        }
예제 #2
0
        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
        }