Exemplo n.º 1
0
        public void NoteTest()
        {
            string content    = testContextInstance.DataRow["NoteText"].ToString();
            string date       = testContextInstance.DataRow["NoteDate"].ToString();
            string newContent = string.Format("Date:{0} \nText:{1}", date, content);
            Note   target     = new Note(date);

            target.AddText(content);
            Assert.AreEqual(newContent, target.ToString());
        }