Example #1
0
        public void HandleRightParentheses_ThrowsException_WhenLeftCountIs0()
        {
            // Arrange
            var leftCount       = 0;
            var expectedMessage = "Improperly nested ')'.";

            // Act
            // Assert
            var response = Assert.Throws <ArgumentException>(() => _sut.HandleRightParentheses(leftCount));

            Assert.AreEqual(expectedMessage, response.Message);
        }