public void InitTests() { _asset = new CalibrationHelper(); }
public void SetTransformationMatrix_NegativeBadAxes() { _asset = new CalibrationHelper(); _asset.SetTransformationMatrix(-1, 0, _marksFromImage); }
public void SetTransformationMatrix_NegativeBadMarks() { _asset = new CalibrationHelper(); Dictionary<eCallibrationMark, CircleF> marks = _marksFromImage.Where(x => x.Key != eCallibrationMark.TL) .ToDictionary(x => x.Key, x => x.Value); _asset.SetTransformationMatrix(1000, 500, marks); }
public void SetTransformationMatrix_Positive() { ITransformation transfromationMock = Substitute.For<ITransformation>(); _asset = new CalibrationHelper(transfromationMock); _asset.SetTransformationMatrix(1000, 500, _marksFromImage); transfromationMock.Received().Initialize(Arg.Any<PointF[]>(), Arg.Any<PointF[]>()); }