public void AddToList_TracksInAirspace_MatchTracks_IsCalled() { var trackstring = "ABC123;10000;10000;1000;20180306000000000"; _myList = new List <string> { trackstring }; _airspace.DefineAirspace(new Track()).ReturnsForAnyArgs(true); _driver.DataReady(this, new RawTransponderDataEventArgs(_myList)); _controller.Received().MatchTracks(Arg.Is <Track>((x) => x.Tag == "ABC123")); }
public void AddToList_TrackInAirspace_MatchTracks_IsCalled() { _uut.AddToList(faketrack1); _controller.Received().MatchTracks(faketrack1); }