Ejemplo n.º 1
0
        public void BookDoesNotAddTooHighGrades()
        {
            // arrange
            var book = new InMemoryBook("");

            try
            {
                book.AddGrade(105);
            }
            catch (ArgumentException)
            {
            }

            // act
            var count = book.GetGradeCount();

            // asserts
            Assert.Equal(0, count);
        }