Beispiel #1
0
        public void return_the_list_of_anagrams_if_the_input_has_three_characters()
        {
            var expectedAnagrams = new List <String> {
                "bir", "bri", "ibr", "irb", "rbi", "rib"
            };

            Anagrams.Of("bir").Should().BeEquivalentTo(expectedAnagrams);
        }
Beispiel #2
0
        public void return_the_list_of_anagrams_if_the_input_has_four_characters()
        {
            var expectedAnagrams = new List <String> {
                "biro", "bior", "brio", "broi", "boir", "bori",
                "ibro", "ibor", "irbo", "irob", "iobr", "iorb",
                "rbio", "rboi", "ribo", "riob", "roib", "robi",
                "obir", "obri", "oibr", "oirb", "orbi", "orib"
            };

            Anagrams.Of("biro").Should().BeEquivalentTo(expectedAnagrams);
        }
Beispiel #3
0
 public void return_the_list_with_himself_if_the_input_has_one_character()
 {
     Anagrams.Of("a").Should().BeEquivalentTo(new List <String> {
         "a"
     });
 }
Beispiel #4
0
 public void return_empty_list_if_the_input_is_empty()
 {
     Anagrams.Of("").Should().BeEmpty();
 }