public void TestAllBlanks() { char[] sentence = Helper.CreateArray(" ", 20); ReplaceBlank.Process(sentence); CollectionAssert.AreEqual(Helper.CreateArray("%20%20%20", 20), sentence); }
public void TestEmpty() { char[] sentence = new char[0]; ReplaceBlank.Process(sentence); CollectionAssert.AreEqual(new char[0], sentence); }
public void TestNoBlank() { char[] sentence = Helper.CreateArray("helloworld", 20); ReplaceBlank.Process(sentence); CollectionAssert.AreEqual(Helper.CreateArray("helloworld", 20), sentence); }
public void TestNull() { char[] sentence = null; ReplaceBlank.Process(sentence); Assert.IsNull(sentence); }
public void TestInsufficientArrayLength() { char[] sentence = Helper.CreateArray("hello world", 15); ReplaceBlank.Process(sentence); }