<commit_before>﻿using FluentAssertions;
using Neutronium.Core.Navigation.Routing;
using System;
using System.Collections.Generic;
using System.Reflection;
using Xunit;

namespace Neutronium.Core.Test.Navigation.Routing
{
    public class TypeProviderTest 
    {
        public interface IInterface { }

        public interface IInterface2 { }

        public class Class1: IInterface { }

        public class Class2 : IInterface, IInterface2 { }

        private IEnumerable<Type> TestAssemblyTypes => typeof(TypeProviderTest).Assembly.GetTypes();

        [Fact]
        public void GetAllTypesFromAssembly_object_returns_types_of_assembly()
        {
            var typeProvider = this.GetAllTypesFromAssembly();
            typeProvider.Types.Should().BeEquivalentTo(TestAssemblyTypes);
        }

        [Fact]
        public void GetAllTypesFromAssembly_type_returns_types_of_assembly()
        {
            var typeProvider = GetType().GetAllTypesFromAssembly();
            typeProvider.Types.Should().BeEquivalentTo(TestAssemblyTypes);
        }<commit_msg>Clean-up<commit_after>﻿using FluentAssertions;
using Neutronium.Core.Navigation.Routing;
using System;
using System.Collections.Generic;
using System.Reflection;
using Xunit;

namespace Neutronium.Core.Test.Navigation.Routing
{
    public class TypeProviderTest 
    {
        public interface IInterface { }

        public interface IInterface2 { }

        public class Class1: IInterface { }

        public class Class2 : IInterface, IInterface2 { }

        private static IEnumerable<Type> TestAssemblyTypes => typeof(TypeProviderTest).Assembly.GetTypes();

        [Fact]
        public void GetAllTypesFromAssembly_object_returns_types_of_assembly()
        {
            var typeProvider = this.GetAllTypesFromAssembly();
            typeProvider.Types.Should().BeEquivalentTo(TestAssemblyTypes);
        }

        [Fact]
        public void GetAllTypesFromAssembly_type_returns_types_of_assembly()
        {
            var typeProvider = GetType().GetAllTypesFromAssembly();
            typeProvider.Types.Should().BeEquivalentTo(TestAssemblyTypes);
        }
{'fraction_non_alphanumeric': 0.07889822595704948, 'fraction_numerical': 0.003734827264239029, 'mean_word_length': 3.1450676982591874, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '374563', 'n_tokens_mistral': 560, 'n_tokens_neox': 544, 'n_words': 105}