Exemplo n.º 1
0
 public void CompressGivenStringTestWithNullInput()
 {
     string s = null;
     Compress c = new Compress();
     Action action=()=> c.CompressGivenString(s);
     action.ShouldThrow<ArgumentException>();
 }
Exemplo n.º 2
0
 static void Main(string[] args)
 {
     Compress.CompressString("abcdefghijk");
 }
Exemplo n.º 3
0
 public void CompressGivenStringTestWithUniqueChars()
 {
     string s = "abcdefgh";
     Compress c = new Compress();
     c.CompressGivenString(s).Should().Be("abcdefgh");
 }
Exemplo n.º 4
0
 public void CompressGivenStringTestWithLowerAndUpperCaseLetters()
 {
     string s = "aaabbFFFAAABBB";
     Compress c = new Compress();
     c.CompressGivenString(s).Should().Be("a3b2F3A3B3");
 }
Exemplo n.º 5
0
 public void CompressGivenStringTest()
 {
     string s = "aaabbbccddeeeffff";
     Compress c = new Compress();
     c.CompressGivenString(s).Should().Be("a3b3c2d2e3f4");
 }