Esempio n. 1
0
        public void TestAllBlanks()
        {
            char[] sentence = Helper.CreateArray("   ", 20);
            ReplaceBlank.Process(sentence);

            CollectionAssert.AreEqual(Helper.CreateArray("%20%20%20", 20), sentence);
        }
Esempio n. 2
0
        public void TestEmpty()
        {
            char[] sentence = new char[0];
            ReplaceBlank.Process(sentence);

            CollectionAssert.AreEqual(new char[0], sentence);
        }
Esempio n. 3
0
        public void TestNoBlank()
        {
            char[] sentence = Helper.CreateArray("helloworld", 20);
            ReplaceBlank.Process(sentence);

            CollectionAssert.AreEqual(Helper.CreateArray("helloworld", 20), sentence);
        }
Esempio n. 4
0
        public void TestNull()
        {
            char[] sentence = null;
            ReplaceBlank.Process(sentence);

            Assert.IsNull(sentence);
        }
Esempio n. 5
0
 public void TestInsufficientArrayLength()
 {
     char[] sentence = Helper.CreateArray("hello  world", 15);
     ReplaceBlank.Process(sentence);
 }