Пример #1
0
        public void Capitalise_SingleWord_ReturnsCapitalised()
        {
            var titleCase = new TitleCase();

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

            Assert.AreEqual("Capthisplease", response);
        }
Пример #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);
        }
Пример #3
0
        public void Capitalise_MultipleWord_ReturnsCapitalised()
        {
            var titleCase = new TitleCase();

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

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

            var response = titleCase.Format("");

            Assert.AreEqual("", response);
        }