public void CalcCourse_Receives_Correct_Tracks() { _calcCourse = Substitute.For <ICalcCourse>(); Action(); RaiseFakeEvent(); RaiseFakeEvent(); _uut.UpdatesTrack(_Tracklist); _calcCourse.Received().Calculate(_Track1, _Track2); }
public void CalcCourse_Receives_Call_If_Monitor_Is_True_Through_Update() { _calcCourse = Substitute.For <ICalcCourse>(); _Track1.X = 20000; _Track2.X = 10000; _Track1.Y = 20000; _Track2.Y = 20000; Action(); RaiseFakeEvent(); //Tracks osv. Check RaiseFakeEvent(); //Check om den får kaldet _calcCourse.Received().Calculate(_Track1, _Track2); }