Beispiel #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            string newtext       = "jaaaaaaaaaaaaaaaaaaaaaaaaa";
            var    stringService = new StringService();

            Console.WriteLine(stringService.CutString(newtext, 5));
        }
        public IActionResult Index()
        {
            var    vm            = new FaqModel();
            var    stringService = new StringService();
            string original      = "Det var en gamal gubbe";

            vm.CuttingExample = stringService.CutString(original, 5);

            return(View(vm));
        }
Beispiel #3
0
        public IActionResult lab1()
        {
            var    vm            = new LabViewModel();
            string newtext       = "jaaaaaaaaaaaaaaaaaaaaaaaaa";
            var    stringService = new StringService();

            vm.CuttingExample = stringService.CutString(newtext, 5);

            return(View(vm));
        }
Beispiel #4
0
 public void should_add_dots_when_cut_is_made_within_string()
 {
     Assert.AreEqual("acad...", s.CutString("academy", 4));
 }
Beispiel #5
0
 public void should_add_dots_when_cut_made_test()
 {
     Assert.AreEqual("acad...", a.CutString("academy", 4));
 }