public void Setup() {
     viewmodel = new ToDoListe();
     sut = new Selektiertes_ToDo_ermitteln();
     result = null;
     sut.Result += x => result = x;
     sut.Inject(viewmodel);
 }
Esempio n. 2
0
 public bool Equals(ToDo other) {
     if (ReferenceEquals(null, other)) {
         return false;
     }
     if (ReferenceEquals(this, other)) {
         return true;
     }
     return other.Id.Equals(Id);
 }
Esempio n. 3
0
 public void Erledigt_Änderung_wird_erkannt() {
     var sut = new ToDo();
     sut.Erledigt = true;
     Assert.That(sut.Changes, Is.True);
 }
Esempio n. 4
0
 public void Tags_Änderung_wird_erkannt() {
     var sut = new ToDo();
     sut.Tags = "x";
     Assert.That(sut.Changes, Is.True);
 }