Пример #1
0
 public void Scores_other_very_short_word()
 {
     Assert.That(Scrabble.Score("f"), Is.EqualTo(4));
 }
Пример #2
0
 public void Null_scores_zero()
 {
     Assert.That(Scrabble.Score(null), Is.EqualTo(0));
 }
Пример #3
0
 public void Scores_very_short_word()
 {
     Assert.That(Scrabble.Score("a"), Is.EqualTo(1));
 }
Пример #4
0
 public void Entire_alphabet()
 {
     Assert.Equal(87, Scrabble.Score("abcdefghijklmnopqrstuvwxyz"));
 }
Пример #5
0
 public void Whitespace_scores_zero()
 {
     Assert.That(Scrabble.Score(" \t\n"), Is.EqualTo(0));
 }
Пример #6
0
 public void Scores_are_case_insensitive()
 {
     Assert.That(Scrabble.Score("OXYPHENBUTAZONE"), Is.EqualTo(41));
 }
Пример #7
0
 public void Convenient_scoring()
 {
     Assert.That(Scrabble.Score("alacrity"), Is.EqualTo(13));
 }
Пример #8
0
 public void Simple_word_scores_the_number_of_letters()
 {
     Assert.Equal(6, Scrabble.Score("street"));
 }
Пример #9
0
 public void Complicated_word_scores_more()
 {
     Assert.Equal(22, Scrabble.Score("quirky"));
 }
Пример #10
0
 public void Scores_very_short_word()
 {
     Assert.Equal(1, Scrabble.Score("a"));
 }
Пример #11
0
 public void Scores_other_very_short_word()
 {
     Assert.Equal(4, Scrabble.Score("f"));
 }
Пример #12
0
 public void Null_scores_zero()
 {
     Assert.Equal(0, Scrabble.Score(null));
 }
Пример #13
0
 public void Whitespace_scores_zero()
 {
     Assert.Equal(0, Scrabble.Score(" \t\n"));
 }
Пример #14
0
 public void Entire_alphabet()
 {
     Assert.That(Scrabble.Score("abcdefghijklmnopqrstuvwxyz"), Is.EqualTo(87));
 }
Пример #15
0
 public void Simple_word_scores_the_number_of_letters()
 {
     Assert.That(Scrabble.Score("street"), Is.EqualTo(6));
 }
Пример #16
0
 public void Scores_are_case_insensitive()
 {
     Assert.Equal(41, Scrabble.Score("OXYPHENBUTAZONE"));
 }
Пример #17
0
 public void Complicated_word_scores_more()
 {
     Assert.That(Scrabble.Score("quirky"), Is.EqualTo(22));
 }
Пример #18
0
 public void Empty_word_scores_zero()
 {
     Assert.Equal(0, Scrabble.Score(""));
 }
Пример #19
0
 public void Empty_word_scores_zero()
 {
     Assert.That(Scrabble.Score(""), Is.EqualTo(0));
 }
Пример #20
0
 public void Scores_are_case_insensitive()
 {
     Assert.That(Scrabble.Score("MULTIBILLIONAIRE"), Is.EqualTo(20));
 }