示例#1
0
        public void SortAfterAddRange()
        {
            ValidCharacters validChars = ValidCharacters.Load(string.Empty, "Test WS", null);

            try
            {
                validChars.InitSortComparer("en");
                List <string> list =
                    new List <string>(new string[] { "z", "c", "t", "b", "8", "7", "6", "5" });

                validChars.AddCharacters(list);
                VerifySortOrder(validChars);
            }
            finally
            {
                validChars.Dispose();
            }
        }
示例#2
0
        public void SortAfterAddSingles()
        {
            ValidCharacters validChars = ValidCharacters.Load(string.Empty, "Test WS", null);

            try
            {
                validChars.InitSortComparer("en");
                validChars.AddCharacter("z");
                validChars.AddCharacter("c");
                validChars.AddCharacter("t");
                validChars.AddCharacter("b");
                validChars.AddCharacter("8");
                validChars.AddCharacter("7");
                validChars.AddCharacter("6");
                validChars.AddCharacter("5");
                VerifySortOrder(validChars);
            }
            finally
            {
                validChars.Dispose();
            }
        }