Пример #1
0
        public void MyTestMethod4()
        {
            //Arrange
            var input    = "110";
            var expected = 1;

            //Act
            var solver = new DecodeWays.Solution();
            var res    = solver.NumDecodings(input);

            //Assert
            Assert.AreEqual(expected, res);
        }
Пример #2
0
        public void MyTestMethod3()
        {
            //Arrange
            var input    = "223610164235151201654";
            var expected = 48;

            //Act
            var solver = new DecodeWays.Solution();
            var res    = solver.NumDecodings(input);

            //Assert
            Assert.AreEqual(expected, res);
        }