Sha256: b1fe5b7897435dcc6e4bef6f935f93ffd9b1701bd21dbbed6dac12364257d1e5

Contents?: true

Size: 1.65 KB

Versions: 138

Compression:

Stored size: 1.65 KB

Contents

// This file was auto-generated based on version 1.0.0 of the canonical data.

using Xunit;

public class ScrabbleScoreTest
{
    [Fact]
    public void Lowercase_letter()
    {
        Assert.Equal(1, ScrabbleScore.Score("a"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Uppercase_letter()
    {
        Assert.Equal(1, ScrabbleScore.Score("A"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Valuable_letter()
    {
        Assert.Equal(4, ScrabbleScore.Score("f"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Short_word()
    {
        Assert.Equal(2, ScrabbleScore.Score("at"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Short_valuable_word()
    {
        Assert.Equal(12, ScrabbleScore.Score("zoo"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Medium_word()
    {
        Assert.Equal(6, ScrabbleScore.Score("street"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Medium_valuable_word()
    {
        Assert.Equal(22, ScrabbleScore.Score("quirky"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Long_mixed_case_word()
    {
        Assert.Equal(41, ScrabbleScore.Score("OxyphenButazone"));
    }

    [Fact(Skip = "Remove to run test")]
    public void English_like_word()
    {
        Assert.Equal(8, ScrabbleScore.Score("pinata"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Empty_input()
    {
        Assert.Equal(0, ScrabbleScore.Score(""));
    }

    [Fact(Skip = "Remove to run test")]
    public void Entire_alphabet_available()
    {
        Assert.Equal(87, ScrabbleScore.Score("abcdefghijklmnopqrstuvwxyz"));
    }
}

Version data entries

138 entries across 138 versions & 1 rubygems

Version Path
trackler-2.2.1.90 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.89 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.88 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.87 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.86 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.85 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.84 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.83 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.82 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.81 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.80 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.79 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.78 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.77 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.76 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.75 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.74 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.73 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.72 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs
trackler-2.2.1.71 tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs