Beispiel #1
0
        public void Capitalise_SingleWord_ReturnsCapitalised()
        {
            var titleCase = new TitleCase();

            var response = titleCase.Format("capThisPLEASE");

            Assert.AreEqual("Capthisplease", response);
        }
Beispiel #2
0
        public void Capitalise_MultipleWordWithReservedFirstAndLast_ReturnsCapitalised()
        {
            var titleCase = new TitleCase();

            var response = titleCase.Format("A capThisPLEASE a THE tO THISToO ThE");

            Assert.AreEqual("A Capthisplease a the to Thistoo The", response);
        }
Beispiel #3
0
        public void Capitalise_MultipleWord_ReturnsCapitalised()
        {
            var titleCase = new TitleCase();

            var response = titleCase.Format("capThisPLEASE THISToO");

            Assert.AreEqual("Capthisplease Thistoo", response);
        }
Beispiel #4
0
        public void Capitalise_EmptyString_ReturnsEmptyString()
        {
            var titleCase = new TitleCase();

            var response = titleCase.Format("");

            Assert.AreEqual("", response);
        }