예제 #1
0
        public void RemoveKdigitsTest1()
        {
            RemoveKdigits obj      = new RemoveKdigits();
            string        expected = "1219";
            string        actual   = obj.DoWork("1432219", 3);

            Assert.AreEqual(expected, actual);
        }
예제 #2
0
        public void RemoveKdigitsTest4()
        {
            RemoveKdigits obj      = new RemoveKdigits();
            string        expected = "0";
            string        actual   = obj.DoWork("10", 1);

            Assert.AreEqual(expected, actual);
        }