Example #1
0
        public void VerifyNoDuplicatesLeavesStringUnchanged()
        {
            string output = DuplicateRemover.Remove("hello");

            Assert.AreEqual("hello", output);
        }
Example #2
0
        public void VerifyThreeCharMatchIsHandled()
        {
            string output = DuplicateRemover.Remove("helhel");

            Assert.AreEqual("hel", output);
        }
Example #3
0
        public void EmptyStringReturnsEmptyString()
        {
            string output = DuplicateRemover.Remove(string.Empty);

            Assert.IsEmpty(output);
        }
Example #4
0
        public void NullStringReturnsEmptyString()
        {
            string output = DuplicateRemover.Remove(null);

            Assert.IsEmpty(output);
        }
Example #5
0
        public void VerifyShortStringsAreUnchanged()
        {
            string output = DuplicateRemover.Remove("he");

            Assert.AreEqual("he", output);
        }
Example #6
0
        public void VerifySimpleOutput()
        {
            string output = DuplicateRemover.Remove("hellohello");

            Assert.AreEqual("hello", output);
        }