コード例 #1
0
        public void EditRecord_WithTwoNote()
        {
            NoteBookService noteBook = NoteBookService.GetInstance();

            noteBook.EditRecord(2, "fourth", "la-la-la", "AnzhelikaKravchuk");
            string actual   = noteBook.ToString();
            string expected = $"#1, first was written by PashaFast in {DateTime.Now}. Add has next text blblabla; " +
                              $"#2, fourth was written by AnzhelikaKravchuk in {DateTime.Now}. Add has next text la-la-la; ";

            Assert.AreEqual(expected, actual);
        }