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.1.0.34 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.33 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.32 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.31 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.30 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.29 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.28 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.27 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.26 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.25 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.24 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.23 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.22 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.21 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.20 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.19 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.18 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.17 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.16 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.1.0.15 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs