<commit_before>﻿using System;
using System.Diagnostics;
using RimDev.Automation.Sql;
using Xunit;

namespace RimDev.Automation.Core
{
    public class LocalDbTests
    {
        [Fact]
        public void Can_CreateLocalDB_With_V11()
        {
            using (var db = new LocalDb(version: LocalDb.Versions.V11))
            {
                Assert.NotNull(db);
            }
        }

        [Fact]
        public void Can_CreateLocalDB_With_V11_And_InstanceName()
        {
            using (var db = new LocalDb(version: LocalDb.Versions.V11, instanceName: "Test"))
            {
                Assert.NotNull(db);
            }
        }

        [Fact]
        public void Can_CreateLocalDB_With_V12()
        {
            using (var db = new LocalDb(version: LocalDb.Versions.V12))
            {
                Assert.NotNull(db);
            }
        }

        [Fact]
        public void Can_CreateLocalDB_With_V12_And_InstanceName()
        {
            using (var db = new LocalDb(version: LocalDb.Versions.V12, instanceName: "Test"))
            {
                Assert.NotNull(db);
            }
        }

        [Fact]
        public void Can_CreateLocalDB_With_V13()
        {
            using (var db = new LocalDb(version: LocalDb.Versions.V13))
            {
                Assert.NotNull(db);
            }
        }

        [Fact]
        public void Can_CreateLocalDB_With_V13_And_InstanceName()
        {
            using (var db = new LocalDb(version: LocalDb.Versions.V13, instanceName: "Test"))
            {
                Assert.NotNull(db);
            }
        }<commit_msg>Tell tests to create instances when using none-default instance name<commit_after>﻿using System;
using System.Diagnostics;
using RimDev.Automation.Sql;
using Xunit;

namespace RimDev.Automation.Core
{
    public class LocalDbTests
    {
        [Fact]
        public void Can_CreateLocalDB_With_V11()
        {
            using (var db = new LocalDb(version: LocalDb.Versions.V11))
            {
                Assert.NotNull(db);
            }
        }

        [Fact]
        public void Can_CreateLocalDB_With_V11_And_InstanceName()
        {
            using (var db = new LocalDb(version: LocalDb.Versions.V11, instanceName: "Test", tryInstallingInstanceIfNotExists: true))
            {
                Assert.NotNull(db);
            }
        }

        [Fact]
        public void Can_CreateLocalDB_With_V12()
        {
            using (var db = new LocalDb(version: LocalDb.Versions.V12))
            {
                Assert.NotNull(db);
            }
        }

        [Fact]
        public void Can_CreateLocalDB_With_V12_And_InstanceName()
        {
            using (var db = new LocalDb(version: LocalDb.Versions.V12, instanceName: "Test", tryInstallingInstanceIfNotExists: true))
            {
                Assert.NotNull(db);
            }
        }

        [Fact]
        public void Can_CreateLocalDB_With_V13()
        {
            using (var db = new LocalDb(version: LocalDb.Versions.V13))
            {
                Assert.NotNull(db);
            }
        }

        [Fact]
        public void Can_CreateLocalDB_With_V13_And_InstanceName()
        {
            using (var db = new LocalDb(version: LocalDb.Versions.V13, instanceName: "Test", tryInstallingInstanceIfNotExists: true))
            {
                Assert.NotNull(db);
            }
        }
{'fraction_non_alphanumeric': 0.08798596901490792, 'fraction_numerical': 0.014030985092078339, 'mean_word_length': 1.5709992486851991, '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': '906882', 'n_tokens_mistral': 1012, 'n_tokens_neox': 962, 'n_words': 185}