コード例 #1
0
 public void InitTests()
 {
     _asset = new CalibrationHelper();
 }
コード例 #2
0
 public void SetTransformationMatrix_NegativeBadAxes()
 {
     _asset = new CalibrationHelper();
     _asset.SetTransformationMatrix(-1, 0, _marksFromImage);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 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[]>());
 }