Exemple #1
0
        public void TestIntersectionsInfiniteException()
        {
            IntersectionsInfiniteException exception = null;

            try
            {
                List <double> l1 = new List <double>();
                l1.Add(0);
                l1.Add(0);
                l1.Add(0);
                l1.Add(1);
                List <double> l2 = new List <double>();
                l2.Add(0);
                l2.Add(-1);
                l2.Add(0);
                l2.Add(-2);
                SimpleObject.LineLineIntersect(l1, l2);
            }catch (IntersectionsInfiniteException ex)
            {
                exception = ex;
            }
            Assert.AreEqual(typeof(IntersectionsInfiniteException), exception.GetType());
        }