Beispiel #1
0
        public void SlogParserOnMolokoTest()
        {
            //Arrange
            var    slogs        = SlogParser.GetSlogs("молоко");
            string resultMoloko = "";

            //Act
            foreach (var item in slogs)
            {
                resultMoloko += item;
            }
            //Assert
            Assert.AreEqual("мо-ло-ко", resultMoloko);
        }
 public ActionResult EnterText(TextViewModel viewModel)
 {
     ViewBag.SeparetedText = SlogParser.GetSlogs(viewModel.UserText);
     return(View(viewModel));
 }