コード例 #1
0
        public void RemoveExtraChar_1MillionSlashs_empty()
        {
            string str = new string('/', 100000);

            string actual = Palindrome.RemoveExtraChar(str);

            Assert.Empty(actual);
        }
コード例 #2
0
        public void RemoveExtraChar_()
        {
            string str = @"`q15 +].{:z\n";

            string actual   = Palindrome.RemoveExtraChar(str);
            string expected = "q15zn";

            Assert.Equal(expected, actual);
        }