public void AddNewPositionWithPositionWillRecordIt() { Position expected = new Position {H = 1, X = 1, Y = 1, Z = 1}; Position result = null; var recorder = new PathRecorder(null); recorder.OnPositionAdded += actual => result = actual; recorder.AddNewPosition(expected); Assert.Equal(expected, result); }
private void ViewModelBase_OnSessionSet(IMemoryAPI fface) { _recorder = new PathRecorder(fface); _recorder.OnPositionAdded += _recorder_OnPositionAdded; }
public void Initialize() { recorder = new PathRecorder(new MMemoryWrapper()); recorder.Interval = 5; }