예제 #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));
 }