public void DeleteOneRecord_WithTwoNote() { NoteBookService noteBook = NoteBookService.GetInstance(); noteBook.DeleteRecord(2); string actual = noteBook.ToString(); string expected = $"#1, first was written by PashaFast in {DateTime.Now}. Add has next text blblabla; "; Assert.AreEqual(expected, actual); }
public void CreateRecord_WithTwoNote() { NoteBookService noteBook = NoteBookService.GetInstance(); noteBook.DeleteRecord(1); noteBook.CreateRecord("first", "blblabla", "PashaFast"); noteBook.CreateRecord("second", "some content", "John Skeet"); string actual = noteBook.ToString(); string expected = $"#1, first was written by PashaFast in {DateTime.Now}. Add has next text blblabla; " + $"#2, second was written by John Skeet in {DateTime.Now}. Add has next text some content; "; Assert.AreEqual(expected, actual); }