Exemple #1
0
        public void TitleReturn_CorrectStr_CorrectTitle()
        {
            string str      = "Id: 6 Title: RPG Category: Card RPG";
            string firstStr = "Title";
            string secStr   = "Category";
            string expected = "RPG";

            SubString subString = GetSubString();
            string    actual    = subString.TitleReturn(str, firstStr, secStr);

            Assert.AreEqual(expected, actual);
        }