Sha256: cc1d7993fd9359eb6515e2ee954b3ae83084e9d0de0a9062d4f1d3cb007f59bc
Contents?: true
Size: 1.92 KB
Versions: 87
Compression:
Stored size: 1.92 KB
Contents
// This file was auto-generated based on version 3.1.0 of the canonical data. using Xunit; public class CryptoSquareTest { [Fact] public void Empty_plaintext_results_in_an_empty_ciphertext() { var plaintext = ""; var expected = ""; Assert.Equal(expected, CryptoSquare.Ciphertext(plaintext)); } [Fact(Skip = "Remove to run test")] public void Lowercase() { var plaintext = "A"; var expected = "a"; Assert.Equal(expected, CryptoSquare.Ciphertext(plaintext)); } [Fact(Skip = "Remove to run test")] public void Remove_spaces() { var plaintext = " b "; var expected = "b"; Assert.Equal(expected, CryptoSquare.Ciphertext(plaintext)); } [Fact(Skip = "Remove to run test")] public void Remove_punctuation() { var plaintext = "@1,%!"; var expected = "1"; Assert.Equal(expected, CryptoSquare.Ciphertext(plaintext)); } [Fact(Skip = "Remove to run test")] public void Number_9_character_plaintext_results_in_3_chunks_of_3_characters() { var plaintext = "This is fun!"; var expected = "tsf hiu isn"; Assert.Equal(expected, CryptoSquare.Ciphertext(plaintext)); } [Fact(Skip = "Remove to run test")] public void Number_8_character_plaintext_results_in_3_chunks_the_last_one_with_a_trailing_space() { var plaintext = "Chill out."; var expected = "clu hlt io "; Assert.Equal(expected, CryptoSquare.Ciphertext(plaintext)); } [Fact(Skip = "Remove to run test")] public void Number_54_character_plaintext_results_in_7_chunks_the_last_two_with_trailing_spaces() { var plaintext = "If man was meant to stay on the ground, god would have given us roots."; var expected = "imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn sseoau "; Assert.Equal(expected, CryptoSquare.Ciphertext(plaintext)); } }
Version data entries
87 entries across 87 versions & 1 rubygems