public void Init()
        {
            modelPointList     = new List <Point>();
            staticPointList    = new List <Point>();
            correspondenceList = new List <Correspondence>
            {
                Auxilaries.RandomCorrespondence(),
                    Auxilaries.RandomCorrespondence(),
                    Auxilaries.RandomCorrespondence(),
                    Auxilaries.RandomCorrespondence()
            };

            correspondences = new CorrespondenceCollection();
            foreach (Correspondence correspondence in correspondenceList)
            {
                correspondences.Add(correspondence);

                modelPointList.Add(correspondence.ModelPoint);
                staticPointList.Add(correspondence.StaticPoint);
            }
        }
        public void Test_Add_Correspondence()
        {
            Correspondence correspondence = Auxilaries.RandomCorrespondence();

            CorrespondenceCollection actual = new CorrespondenceCollection();

            actual.Add(correspondence);

            List <Correspondence> expected_correspondences = new List <Correspondence> {
                correspondence
            };
            List <Point> expected_modelpoints = new List <Point> {
                correspondence.ModelPoint
            };
            List <Point> expected_staticpoints = new List <Point> {
                correspondence.StaticPoint
            };

            Assert.That(actual.Correspondences, Is.EquivalentTo(expected_correspondences));
            Assert.That(actual.ModelPoints, Is.EquivalentTo(expected_modelpoints));
            Assert.That(actual.StaticPoints, Is.EquivalentTo(expected_staticpoints));
        }