Example #1
0
        public void DictionaryCustomSorter_Empty_Success()
        {
            var sorter = new CustomAsciiArraySorter();
            var result = sorter.Sort(String.Empty);

            result.Should().Be(String.Empty);
        }
Example #2
0
        public void DictionaryCustomSorter_SpecialChar_Success()
        {
            var sorter = new CustomAsciiArraySorter();
            var result = sorter.Sort("~!@#$%^&*()_+{}[]:;'\",./<>?`/*-+");

            result.Should().Be(String.Empty);
        }
Example #3
0
        public void DictionaryCustomSorter_BaseLine_Success()
        {
            var sorter = new CustomAsciiArraySorter();
            var result = sorter.Sort("Contrary to popular belief, the pink unicorn flies east");

            result.Should().Be("aaabcceeeeeffhiiiiklllnnnnooooppprrrrssttttuuy");
        }