public async Task ConvertAsync_WhenContactIsNotNull_ReturnsNonEmptyCollection()
        {
            IContactToCsvConverter sut = CreateSut();

            IEnumerable <string> result = await sut.ConvertAsync(_fixture.BuildContactMock().Object);

            Assert.That(result, Is.Not.Empty);
        }
        public async Task ConvertAsync_WhenContactIsNotNull_ReturnsNonEmptyCollectionWhichMatchNumberOfColumnsFromGetColumnNamesAsync()
        {
            IContactToCsvConverter sut = CreateSut();

            string[] result = (await sut.ConvertAsync(_fixture.BuildContactMock().Object)).ToArray();

            Assert.That(result.Count, Is.EqualTo((await sut.GetColumnNamesAsync()).Count()));
        }
        public void ConvertAsync_WhenContactIsNull_ThrowsArgumentNullException()
        {
            IContactToCsvConverter sut = CreateSut();

            ArgumentNullException result = Assert.ThrowsAsync <ArgumentNullException>(async() => await sut.ConvertAsync(null));

            Assert.That(result.ParamName, Is.EqualTo("contact"));
        }