コード例 #1
0
        public void SplittingJsonString_DifferentSignsAdded_StringNoDifferentSigns()
        {
            List <string> testList    = new List <string>();
            ParsingData   parsing     = new ParsingData(testList);
            string        inputString = ":sd:dd    :2#3:grr    :sd##ada:3#";
            string        validString = "sddd23grrsdada3";

            String[] ArrayNoVariation = parsing.SplittingJsonString(inputString);
            string   outputString     = string.Join("", ArrayNoVariation);

            Assert.AreEqual(validString, outputString);
        }
コード例 #2
0
        public void SplittingJsonString_HashSignsAdded_StringNoHash()
        {
            List <string> testList    = new List <string>();
            ParsingData   parsing     = new ParsingData(testList);
            string        inputString = "#sd#dd#23#grr#sdada#3";
            string        validString = "sddd23grrsdada3";

            String[] ArrayNoHash  = parsing.SplittingJsonString(inputString);
            string   outputString = string.Join("", ArrayNoHash);

            Assert.AreEqual(validString, outputString);
        }
コード例 #3
0
        public void SplittingJsonString_ColonsAdded_StringNoColon()
        {
            List <string> testList    = new List <string>();
            ParsingData   parsing     = new ParsingData(testList);
            string        inputString = ":sd:dd:23:grr:sdada:3";
            string        validString = "sddd23grrsdada3";

            String[] ArrayNoColon = parsing.SplittingJsonString(inputString);
            string   outputString = string.Join("", ArrayNoColon);

            Assert.AreEqual(validString, outputString);
        }