public void RangeIndexScanIntegrationTest() { Assert.Inconclusive("TODO."); IGraphService target = CreateIGraphService(); // TODO: Initialize to an appropriate value RangeIndexScanSpecification definition = null; // TODO: Initialize to an appropriate value IEnumerable <int> expected = null; // TODO: Initialize to an appropriate value IEnumerable <int> actual; actual = target.RangeIndexScan(definition); Assert.AreEqual(expected, actual); }
public void RangeIndexScanUnitTest() { Assert.Inconclusive("TODO"); Fallen8 fallen8 = null; // TODO: Initialize to an appropriate value var target = new GraphService(fallen8); // TODO: Initialize to an appropriate value RangeIndexScanSpecification definition = null; // TODO: Initialize to an appropriate value IEnumerable <int> expected = null; // TODO: Initialize to an appropriate value IEnumerable <int> actual; actual = target.RangeIndexScan(definition); Assert.AreEqual(expected, actual); }
public IEnumerable <int> RangeIndexScan(RangeIndexScanSpecification definition) { #region initial checks if (definition == null) { throw new ArgumentNullException("definition"); } #endregion var left = (IComparable)Convert.ChangeType(definition.LeftLimit, Type.GetType(definition.FullQualifiedTypeName, true, true)); var right = (IComparable)Convert.ChangeType(definition.RightLimit, Type.GetType(definition.FullQualifiedTypeName, true, true)); ReadOnlyCollection <AGraphElement> graphElements; return(_fallen8.RangeIndexScan(out graphElements, definition.IndexId, left, right, definition.IncludeLeft, definition.IncludeRight) ? CreateResult(graphElements, definition.ResultType) : Enumerable.Empty <Int32>()); }