<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using System.Data;
using System.Diagnostics;
using System.IO;

namespace UnitTests.Data.Providers
{
    [TestFixture]
    public class ManagedSQLiteTests
    {
        private string GetTestDBPath()
        {
            return "Data Source=" + Path.Combine(Path.GetDirectoryName(this.GetType().Assembly.CodeBase.Replace("file:///", "")), @"TestData\test-2.3.sqlite");
        }
        [TestFixtureSetUp]
        public void SetupFixture()
        {
            GeoAPI.GeometryServiceProvider.Instance = new NetTopologySuite.NtsGeometryServices();
        }

        [Test]
        public void TestReadPoints()
        {
            SharpMap.Data.Providers.ManagedSpatiaLite sq = new SharpMap.Data.Providers.ManagedSpatiaLite(GetTestDBPath(), "towns", "Geometry", "ROWID");
            var ext = sq.GetExtents();
            var ds = new SharpMap.Data.FeatureDataSet();
            sq.ExecuteIntersectionQuery(ext, ds);
            Assert.AreEqual(8101, ds.Tables[0].Count);

        }
        [Test]
        public void TestReadLines()
        {
            SharpMap.Data.Providers.ManagedSpatiaLite sq = new SharpMap.Data.Providers.ManagedSpatiaLite(GetTestDBPath(), "highways", "Geometry", "ROWID");
            var ext = sq.GetExtents();
            var ds = new SharpMap.Data.FeatureDataSet();
            sq.ExecuteIntersectionQuery(ext, ds);
            Assert.AreEqual(775, ds.Tables[0].Count);

        }

        [Test]
        public void TestReadPolys()
        {
            SharpMap.Data.Providers.ManagedSpatiaLite sq = new SharpMap.Data.Providers.ManagedSpatiaLite(GetTestDBPath(), "regions", "Geometry", "ROWID");
            var ext = sq.GetExtents();
            var ds = new SharpMap.Data.FeatureDataSet();
            sq.ExecuteIntersectionQuery(ext, ds);
            Assert.AreEqual(109, ds.Tables[0].Count);

        }
    }
}
<commit_msg>[Trunk] - Set category for ManagedSpatialiteTest<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using System.Data;
using System.Diagnostics;
using System.IO;

namespace UnitTests.Data.Providers
{
    [TestFixture, Category("KnownToFailOnTeamCityAtCodebetter")]
    public class ManagedSQLiteTests
    {
        private string GetTestDBPath()
        {
            return "Data Source=" + Path.Combine(Path.GetDirectoryName(this.GetType().Assembly.CodeBase.Replace("file:///", "")), @"TestData\test-2.3.sqlite");
        }
        [TestFixtureSetUp]
        public void SetupFixture()
        {
            GeoAPI.GeometryServiceProvider.Instance = new NetTopologySuite.NtsGeometryServices();
        }

        [Test]
        public void TestReadPoints()
        {
            SharpMap.Data.Providers.ManagedSpatiaLite sq = new SharpMap.Data.Providers.ManagedSpatiaLite(GetTestDBPath(), "towns", "Geometry", "ROWID");
            var ext = sq.GetExtents();
            var ds = new SharpMap.Data.FeatureDataSet();
            sq.ExecuteIntersectionQuery(ext, ds);
            Assert.AreEqual(8101, ds.Tables[0].Count);

        }
        [Test]
        public void TestReadLines()
        {
            SharpMap.Data.Providers.ManagedSpatiaLite sq = new SharpMap.Data.Providers.ManagedSpatiaLite(GetTestDBPath(), "highways", "Geometry", "ROWID");
            var ext = sq.GetExtents();
            var ds = new SharpMap.Data.FeatureDataSet();
            sq.ExecuteIntersectionQuery(ext, ds);
            Assert.AreEqual(775, ds.Tables[0].Count);

        }

        [Test]
        public void TestReadPolys()
        {
            SharpMap.Data.Providers.ManagedSpatiaLite sq = new SharpMap.Data.Providers.ManagedSpatiaLite(GetTestDBPath(), "regions", "Geometry", "ROWID");
            var ext = sq.GetExtents();
            var ds = new SharpMap.Data.FeatureDataSet();
            sq.ExecuteIntersectionQuery(ext, ds);
            Assert.AreEqual(109, ds.Tables[0].Count);

        }
    }
}

{'fraction_non_alphanumeric': 0.11553211888782358, 'fraction_numerical': 0.007190795781399808, 'mean_word_length': 2.296208530805687, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6951705', 'n_tokens_mistral': 1234, 'n_tokens_neox': 1210, 'n_words': 211}