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.8.14 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.13 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.12 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.11 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.10 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.9 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.8 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.7 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.6 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.5 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.4 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.3 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.2 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.8.1 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.7.0 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.44 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.43 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.42 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.41 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs
trackler-2.0.6.40 tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs