Sha256: 0c1e499178ce6b11faf9b4598df555869b4bb33881294c3139e32b65b0ef4baf

Contents?: true

Size: 1.47 KB

Versions: 115

Compression:

Stored size: 1.47 KB

Contents

using NUnit.Framework;

[TestFixture]
public class SecretHandshakeTests
{
    [Test]
    public void Test_1_handshake_to_wink()
    {
        Assert.That(SecretHandshake.Commands(1), Is.EqualTo(new[] { "wink" }));
    }

    [Ignore("Remove to run test")]
    [Test]
    public void Test_10_handshake_to_double_blink()
    {
        Assert.That(SecretHandshake.Commands(2), Is.EqualTo(new[] { "double blink" }));
    }

    [Ignore("Remove to run test")]
    [Test]
    public void Test_100_handshake_to_close_your_eyes()
    {
        Assert.That(SecretHandshake.Commands(4), Is.EqualTo(new[] { "close your eyes" }));
    }

    [Ignore("Remove to run test")]
    [Test]
    public void Test_1000_handshake_to_close_your_eyes()
    {
        Assert.That(SecretHandshake.Commands(8), Is.EqualTo(new[] { "jump" }));
    }

    [Ignore("Remove to run test")]
    [Test]
    public void Test_handshake_11_to_wink_and_double_blink()
    {
        Assert.That(SecretHandshake.Commands(3), Is.EqualTo(new[] { "wink", "double blink" }));
    }

    [Ignore("Remove to run test")]
    [Test]
    public void Test_handshake_10011_to_double_blink_and_wink()
    {
        Assert.That(SecretHandshake.Commands(19), Is.EqualTo(new[] { "double blink", "wink" }));
    }

    [Ignore("Remove to run test")]
    [Test]
    public void Test_handshake_11111_to_all_commands_reversed()
    {
        Assert.That(SecretHandshake.Commands(31), Is.EqualTo(new[] { "jump", "close your eyes", "double blink", "wink" }));
    }
}

Version data entries

115 entries across 115 versions & 1 rubygems

Version Path
trackler-2.0.6.19 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.18 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.17 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.16 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.15 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.14 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.13 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.12 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.11 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.10 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.9 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.8 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.7 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.6 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.5 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.4 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.3 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.2 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.1 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.0 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs