コード例 #1
0
ファイル: Rot13Test.cs プロジェクト: SoftwareDojo/Katas
        public void Encode_offset_1(string text, string expected)
        {
            // arrange
            var rot13 = new Rot13(1);

            // act
            string actual = rot13.Encode(text);

            // assert
            Assert.Equal(expected, actual);
        }
コード例 #2
0
ファイル: Rot13Test.cs プロジェクト: SoftwareDojo/Katas
        public void Encode_with_german_characters(string text, string expected)
        {
            // arrange
            var rot13 = new Rot13();

            // act
            string actual = rot13.Encode(text);

            // assert
            Assert.Equal(expected, actual);
        }
コード例 #3
0
ファイル: Rot13Test.cs プロジェクト: SoftwareDojo/Katas
        public void Decode(string text, string expected)
        {
            // arrange
            var rot13 = new Rot13();

            // act
            string actual = rot13.Decode(text);

            // assert
            Assert.Equal(expected, actual);
        }