Sha256: 32da40d6c6bd970ba28b44d123d59b8c2c2e0031535d9ec40ff7dbc81e2c2187

Contents?: true

Size: 1.78 KB

Versions: 28

Compression:

Stored size: 1.78 KB

Contents

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

using Xunit;

public class RotationalCipherTest
{
    [Fact]
    public void Rotate_a_by_0_same_output_as_input()
    {
        Assert.Equal("a", RotationalCipher.Rotate("a", 0));
    }

    [Fact(Skip = "Remove to run test")]
    public void Rotate_a_by_1()
    {
        Assert.Equal("b", RotationalCipher.Rotate("a", 1));
    }

    [Fact(Skip = "Remove to run test")]
    public void Rotate_a_by_26_same_output_as_input()
    {
        Assert.Equal("a", RotationalCipher.Rotate("a", 26));
    }

    [Fact(Skip = "Remove to run test")]
    public void Rotate_m_by_13()
    {
        Assert.Equal("z", RotationalCipher.Rotate("m", 13));
    }

    [Fact(Skip = "Remove to run test")]
    public void Rotate_n_by_13_with_wrap_around_alphabet()
    {
        Assert.Equal("a", RotationalCipher.Rotate("n", 13));
    }

    [Fact(Skip = "Remove to run test")]
    public void Rotate_capital_letters()
    {
        Assert.Equal("TRL", RotationalCipher.Rotate("OMG", 5));
    }

    [Fact(Skip = "Remove to run test")]
    public void Rotate_spaces()
    {
        Assert.Equal("T R L", RotationalCipher.Rotate("O M G", 5));
    }

    [Fact(Skip = "Remove to run test")]
    public void Rotate_numbers()
    {
        Assert.Equal("Xiwxmrk 1 2 3 xiwxmrk", RotationalCipher.Rotate("Testing 1 2 3 testing", 4));
    }

    [Fact(Skip = "Remove to run test")]
    public void Rotate_punctuation()
    {
        Assert.Equal("Gzo'n zvo, Bmviyhv!", RotationalCipher.Rotate("Let's eat, Grandma!", 21));
    }

    [Fact(Skip = "Remove to run test")]
    public void Rotate_all_letters()
    {
        Assert.Equal("Gur dhvpx oebja sbk whzcf bire gur ynml qbt.", RotationalCipher.Rotate("The quick brown fox jumps over the lazy dog.", 13));
    }
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.179 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.178 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.177 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.176 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.175 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.174 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.173 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.172 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.171 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.170 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.169 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.167 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.166 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.165 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.164 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.163 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.162 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.161 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs
trackler-2.2.1.160 tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs