public void ModelGetListInFormat()
 {
     var list = new TodoListModel();
     list.AddToList("Ron to buy pizza");
     list.AddToList("Dallan learn to read");
     list.AddToList("Mike learn to shut up");
     Assert.That(list.ListAsAString(),
         Is.EqualTo("Ron to buy pizza, Dallan learn to read, Mike learn to shut up"));
 }
Esempio n. 2
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     var model = new TodoListModel();
     var controller = new ListController(model);
     var listDisplay = new ListDisplayForm();
     model.ModelChanged += listDisplay.ModelChanged;
     listDisplay.Show();
     var listDisplay2 = new ListDisplayForm();
     model.ModelChanged += listDisplay2.ModelChanged;
     listDisplay2.Show();
     Application.Run(new AddToListForm(controller));
 }