protected override void Establish_context() { var namingConvention = new StubNamingConvention(s => s.Value.ToLower()) { SeparatorCharacter = "__", SplittingExpression = new Regex(@"[\p{Ll}\p{Lu}0-9]+(?=__?)") }; var profile = new TestProfile(); profile.Internal().AddMemberConfiguration().AddMember <NameSplitMember>(_ => { _.SourceMemberNamingConvention = new PascalCaseNamingConvention(); _.DestinationMemberNamingConvention = namingConvention; }); _mappingOptions = new ProfileMap(profile); }