예제 #1
0
 public void should_get_char_return_number()
 {
     //act
     var res = new Encryptor().Convert("a");
     //assert
     res.Should().BeEquivalentTo("1");
 }
예제 #2
0
 public void should_take_nums_and_convert_them_to_chars()
 {
     //arrange
     const string text = "1_2_3_4";
     const string expected = "abcd";
     //act
     var res = new Encryptor().Convert(text);
     //assert
     res.Should().BeEquivalentTo(expected);
 }
예제 #3
0
 public void should_take_string_of_chars_return_nums()
 {
     var res = new Encryptor().Convert("abcd");
     res.Should().BeEquivalentTo("1_2_3_4");
 }