Esempio n. 1
0
        internal static void AssertCollectAll(
            MXCIFQuadTree tree,
            String expected)
        {
            BoundingBox bb = tree.Root.Bb;

            AssertCollect(tree, bb.MinX, bb.MinY, bb.MaxX - bb.MinX, bb.MaxY - bb.MinY, expected);
            Assert.AreEqual(expected.Length == 0 ? 0 : expected.SplitCsv().Length, MXCIFQuadTreeFilterIndexCount.Count(tree));
            Assert.AreEqual(expected.Length == 0, MXCIFQuadTreeFilterIndexEmpty.IsEmpty(tree));
        }
Esempio n. 2
0
        private static void AssertCompare(
            MXCIFQuadTree tree,
            String expected,
            IDictionary <int, String> received)
        {
            StringJoiner joiner = new StringJoiner(",");

            foreach (string value in received.Values)
            {
                joiner.Add(value);
            }

            Assert.AreEqual(expected, joiner.ToString());
            Assert.IsTrue((expected.Length == 0 ? 0 : expected.SplitCsv().Length) <= MXCIFQuadTreeFilterIndexCount.Count(tree));
        }