Esempio n. 1
0
        public void GradeValueValidation()
        {
            //arrange
            var book = new InMemoryBook("Test Grade Book");

            //act
            try
            {
                book.AddGrade(105);
            }
            catch (ArgumentException ex)
            {
                Console.WriteLine(ex.Message);
            }

            //assert
            Assert.True(!book.GradeExists(105));
        }