Example #1
0
        public void Should_increment_by_one()
        {
            // Arrange
            var solution = new RomanToIntegerSolution();
            var expected = 3;

            //act
            var result = solution.RomanToInt("III");

            //Assert
            Assert.Equal(expected, result);
        }
Example #2
0
        public void Common_Test()
        {
            // Arrange
            var solution = new RomanToIntegerSolution();
            var expected = 4;

            //act
            var result = solution.RomanToInt("IV");

            //Assert
            Assert.Equal(expected, result);
        }
Example #3
0
        public void Case_with_next_symbol_checking()
        {
            // Arrange
            var solution = new RomanToIntegerSolution();
            var expected = 1695;

            //act
            var result = solution.RomanToInt("MDCXCV");

            //Assert
            Assert.Equal(expected, result);
        }