Exemplo n.º 1
0
        public void Capitalise_SingleWord_ReturnsCapitalised()
        {
            var titleCase = new TitleCase();

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

            Assert.AreEqual("Capthisplease", response);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        public void Capitalise_MultipleWord_ReturnsCapitalised()
        {
            var titleCase = new TitleCase();

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

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

            var response = titleCase.Format("");

            Assert.AreEqual("", response);
        }