File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public override bool Equals(object obj)
68
68
69
69
public override int GetHashCode ( )
70
70
{
71
- return base . GetHashCode ( ) ;
71
+ return Text . GetHashCode ( ) ;
72
72
}
73
73
}
74
74
}
Original file line number Diff line number Diff line change @@ -216,9 +216,13 @@ public void AddMarkerReallyDoesAddNewMarker()
216
216
{
217
217
var markers = GetTestMarkers ( ) ;
218
218
219
+ var newMarkerText = "Hi, guys:" ;
220
+ var newMarkerPriority = TodoPriority . High ;
221
+
219
222
var addView = new Mock < IAddTodoMarkerView > ( ) ;
220
- addView . SetupProperty ( a => a . MarkerText , "Hi, guys:" ) ;
221
- addView . SetupProperty ( a => a . MarkerPriority , TodoPriority . High ) ;
223
+ addView . SetupProperty ( a => a . MarkerText , newMarkerText ) ;
224
+ addView . SetupProperty ( a => a . MarkerPriority , newMarkerPriority ) ;
225
+ addView . SetupProperty ( a => a . TodoMarkers , markers ) ;
222
226
223
227
var view = new Mock < ITodoSettingsView > ( ) ;
224
228
view . SetupProperty ( v => v . TodoMarkers , new BindingList < ToDoMarker > ( markers ) ) ;
@@ -229,7 +233,7 @@ public void AddMarkerReallyDoesAddNewMarker()
229
233
230
234
addView . Raise ( a => a . AddMarker += null , EventArgs . Empty ) ;
231
235
232
- Assert . IsTrue ( view . Object . TodoMarkers . Contains ( new ToDoMarker ( addView . Object . MarkerText , addView . Object . MarkerPriority ) ) ) ;
236
+ Assert . IsTrue ( view . Object . TodoMarkers . Contains ( new ToDoMarker ( newMarkerText , newMarkerPriority ) ) ) ;
233
237
}
234
238
}
235
239
}
You can’t perform that action at this time.
0 commit comments