<commit_before><commit_msg>added mapper tests.<commit_after>﻿using FluentAssertions;
using System;
using System.Linq;
using Xunit;

namespace AlfredoRevillaBairesdevChallenge.Tests
{
    public class StringLineToContactMapperTests
    {
        private StringLineToContactMapper _mapper;

        public StringLineToContactMapperTests()
        {
            _mapper = new StringLineToContactMapper();
        }

        [Fact]
        public void Result_count_should_be_same_as_input_lines_count()
        {
            //  arrage
            var data = new[]{"573435640 | jean | harion | vice president | Dominica | Telecommunications | 0 | 0",
                 "337983069 | meredith | kopit - levien | chief revenue officer| United States | Publishing | 0 | 0"};

            //  act
            var result = _mapper.Map(data);

            //  assert
            result.Count().Should().Be(data.Count());
        }
    }
}
{'fraction_non_alphanumeric': 0.08963282937365011, 'fraction_numerical': 0.023758099352051837, 'mean_word_length': 2.2526315789473683, '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': '6206627', 'n_tokens_mistral': 277, 'n_tokens_neox': 256, 'n_words': 57}