Sha256: f210e60ded432d65669c5bb92b4844136f44199c247b857ab379050edb2cd57c

Contents?: true

Size: 1.34 KB

Versions: 115

Compression:

Stored size: 1.34 KB

Contents

using Xunit;

public class SecretHandshakeTests
{
    [Fact]
    public void Test_1_handshake_to_wink()
    {
        Assert.Equal(new[] { "wink" }, SecretHandshake.Commands(1));
    }

    [Fact(Skip = "Remove to run test")]
    public void Test_10_handshake_to_double_blink()
    {
        Assert.Equal(new[] { "double blink" }, SecretHandshake.Commands(2));
    }

    [Fact(Skip = "Remove to run test")]
    public void Test_100_handshake_to_close_your_eyes()
    {
        Assert.Equal(new[] { "close your eyes" }, SecretHandshake.Commands(4));
    }

    [Fact(Skip = "Remove to run test")]
    public void Test_1000_handshake_to_close_your_eyes()
    {
        Assert.Equal(new[] { "jump" }, SecretHandshake.Commands(8));
    }

    [Fact(Skip = "Remove to run test")]
    public void Test_handshake_11_to_wink_and_double_blink()
    {
        Assert.Equal(new[] { "wink", "double blink" }, SecretHandshake.Commands(3));
    }

    [Fact(Skip = "Remove to run test")]
    public void Test_handshake_10011_to_double_blink_and_wink()
    {
        Assert.Equal(new[] { "double blink", "wink" }, SecretHandshake.Commands(19));
    }

    [Fact(Skip = "Remove to run test")]
    public void Test_handshake_11111_to_all_commands_reversed()
    {
        Assert.Equal(new[] { "jump", "close your eyes", "double blink", "wink" }, SecretHandshake.Commands(31));
    }
}

Version data entries

115 entries across 115 versions & 1 rubygems

Version Path
trackler-2.0.8.50 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.49 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.48 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.47 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.46 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.45 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.44 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.43 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.42 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.41 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.40 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.39 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.38 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.37 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.36 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.35 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.34 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.33 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.32 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.31 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs