<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Automapping;
using FluentNHibernate.Testing.Automapping.Apm;
using NUnit.Framework;

namespace FluentNHibernate.Testing.AutoMapping.Apm
{
    [TestFixture]
    public class ConcreteBaseClassTests
    {
        [Test, Ignore]
        public void ShouldAllowPropertiesWithSameNameToExistInDerivedClasses()
        {
            var automapper =
                AutoMap.Source(new StubTypeSource(new[] { typeof(BaseDomain), typeof(Subclass1), typeof(Subclass2), typeof(Subclass3) }));

            automapper.MergeMappings = true;
            automapper.CompileMappings();
            var mappings = automapper.BuildMappings();

            mappings
                .SelectMany(x => x.Classes)
                .SelectMany(x => x.Subclasses)
                .SelectMany(c => c.Properties)
                .Count(p => p.Name == "CommonField1")
                .ShouldEqual(2);
        }
    }<commit_msg>Un-ignored a unit test that now passes thanks to the previous set of changes from <NAME>.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Automapping;
using FluentNHibernate.Testing.Automapping.Apm;
using NUnit.Framework;

namespace FluentNHibernate.Testing.AutoMapping.Apm
{
    [TestFixture]
    public class ConcreteBaseClassTests
    {
        [Test]
        public void ShouldAllowPropertiesWithSameNameToExistInDerivedClasses()
        {
            var automapper =
                AutoMap.Source(new StubTypeSource(new[] { typeof(BaseDomain), typeof(Subclass1), typeof(Subclass2), typeof(Subclass3) }));

            automapper.MergeMappings = true;
            automapper.CompileMappings();
            var mappings = automapper.BuildMappings();

            mappings
                .SelectMany(x => x.Classes)
                .SelectMany(x => x.Subclasses)
                .SelectMany(c => c.Properties)
                .Count(p => p.Name == "CommonField1")
                .ShouldEqual(2);
        }
    }
{'fraction_non_alphanumeric': 0.09688090737240075, 'fraction_numerical': 0.004725897920604915, 'mean_word_length': 2.4761904761904763, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 12, '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': '7488812', 'n_tokens_mistral': 614, 'n_tokens_neox': 574, 'n_words': 114}