<commit_before>﻿using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Unosquare.Swan.Test.Mocks;

namespace Unosquare.Swan.Test
{
    [TestFixture]
    public class SingletonBaseTest
    {
        [Test]
        public void GetInstanceNameTest()
        {
            Assert.AreEqual(nameof(MockProvider), MockProvider.Instance.GetName());
        }
    }
}<commit_msg>Completing SingletonBase tests<commit_after>﻿using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Unosquare.Swan.Test.Mocks;

namespace Unosquare.Swan.Test
{
    [TestFixture]
    public class SingletonBaseTest
    {
        static MockProvider mocks = new MockProvider();
        static MockProvider mocksInstance = MockProvider.Instance;

        [Test]
        public void GetInstanceNameTest()
        {
            Assert.AreEqual(nameof(MockProvider), mocksInstance.GetName());
        }

        [Test]
        public void GetTypeTest()
        {
            Assert.AreEqual(typeof(MockProvider), mocksInstance.GetType());
        }

        [Test]
        public void StringifyTest()
        {
            Assert.AreEqual(mocks.Stringify(), mocksInstance.Stringify());
        }

        [Test]
        public void ToJsonTest()
        {
            Assert.AreEqual(mocks.ToJson(), mocksInstance.ToJson());
        }

        [Test]
        public void ToStringTest()
        {
            Assert.AreEqual(mocks.ToString(), mocksInstance.ToString());
        }

        [Test]
        public void ToStringInvariantTest()
        {
            Assert.AreEqual(mocks.ToStringInvariant(), mocksInstance.ToStringInvariant());
        }
    }
}
{'fraction_non_alphanumeric': 0.10107893242475866, 'fraction_numerical': 0.0, 'mean_word_length': 2.4015444015444016, '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': '6072549', 'n_tokens_mistral': 498, 'n_tokens_neox': 494, 'n_words': 89}