Esempio n. 1
0
        public void NullOrEmptyValue_TitleCaseTest(string str)
        {
            //arrange
            var url = new URL();

            //assert
            Assert.ThrowsException <ArgumentOutOfRangeException>(() => TitleCase.Exec(str));
        }
Esempio n. 2
0
        public void NullSecondArg_TitleCaseTest()
        {
            //arrange
            var    url    = new URL();
            string result = TitleCase.Exec("the quick brown fox");

            //act
            string expected = "The Quick Brown Fox";

            //assert
            Assert.IsTrue(result == expected);
        }
Esempio n. 3
0
        public void TestMult_TitleCaseTest()
        {
            //arrange
            var    url    = new URL();
            string result = TitleCase.Exec("a clash of KINGS", "a an the of");

            //act
            string expected = "A Clash of Kings";

            //assert
            Assert.IsTrue(result == expected);
        }