Testing mapping code Obviously, you have to test mapping code somehow, even (or especially) if you use AutoMapper. Is there any way to make it less verbose?

[Test]
public void Map_Always_SetsSimpleProperties()
{
  var auctionPlace = fixture.Create&lt;string&gt;();
  var submissionCloseDateTime = fixture.Create&lt;DateTime&gt;();
  var quotationForm = fixture.Create&lt;string&gt;();
  var quotationExaminationDateTime = fixture.Create&lt;DateTime&gt;();
  var envelopeOpeningTime = fixture.Create&lt;DateTime&gt;();
  var envelopeOpeningPlace = fixture.Create&lt;string&gt;();
  var auctionDateTime = fixture.Create&lt;DateTime&gt;();
  var applExamPeriodDateTime = fixture.Create&lt;DateTime&gt;();
  var considerationSecondPartDate = fixture.Create&lt;DateTime&gt;();

  var doc = fixture.Create&lt;Notification223&gt;();

  doc.AuctionPlace = auctionPlace;
  doc.SubmissionCloseDateTime = submissionCloseDateTime;
  doc.QuotationForm = quotationForm;
  doc.QuotationExaminationTime = quotationExaminationDateTime;
  doc.EnvelopeOpeningTime = envelopeOpeningTime;
  doc.EnvelopeOpeningPlace = envelopeOpeningPlace;
  doc.AuctionTime = auctionDateTime;
  doc.ApplExamPeriodTime = applExamPeriodDateTime;
  doc.ConsiderationSecondPartDate = considerationSecondPartDate;

  var sut = CreateSut();

  var actual = sut.Map(doc);

  Assert.That(actual.AuctionPlace, Is.EqualTo(auctionPlace));
  Assert.That(actual.SubmissionCloseDateTime, Is.EqualTo(submissionCloseDateTime));
  Assert.That(actual.QuotationForm, Is.EqualTo(quotationForm));
  Assert.That(actual.QuotationExaminationDateTime, Is.EqualTo(quotationExaminationDateTime));
  Assert.That(actual.EnvelopeOpeningTime, Is.EqualTo(envelopeOpeningTime));
  Assert.That(actual.EnvelopeOpeningPlace, Is.EqualTo(envelopeOpeningPlace));
  Assert.That(actual.AuctionDateTime, Is.EqualTo(auctionDateTime));
  Assert.That(actual.ApplExamPeriodDateTime, Is.EqualTo(applExamPeriodDateTime));
  Assert.That(actual.ConsiderationSecondPartDate, Is.EqualTo(considerationSecondPartDate));
}
Yes, you can make it less verbose.

I assume you are using AutoFixture in you call to Create()?

If so, this will create random values out of the box. No need to specify the content and assign each property. Create the source object for mapping, map it, compare the mapped values with the properties on the source object:

    [Test]
    public void Map_Always_SetsSimpleProperties()
    {
        var doc = fixture.Create&lt;Notification223&gt;(); // Autofixture will fill properties with random data.
        var sut = CreateSut();

        var actual = sut.Map(doc);

        Assert.That(actual.AuctionPlace, Is.EqualTo(doc.AuctionPlace));
        Assert.That(actual.SubmissionCloseDateTime, Is.EqualTo(doc.SubmissionCloseDateTime));
        Assert.That(actual.QuotationForm, Is.EqualTo(doc.QuotationForm));
        Assert.That(actual.QuotationExaminationDateTime, Is.EqualTo(doc.QuotationExaminationDateTime));
        Assert.That(actual.EnvelopeOpeningTime, Is.EqualTo(doc.EnvelopeOpeningTime));
        Assert.That(actual.EnvelopeOpeningPlace, Is.EqualTo(doc.EnvelopeOpeningPlace));
        Assert.That(actual.AuctionDateTime, Is.EqualTo(doc.AuctionDateTime));
        Assert.That(actual.ApplExamPeriodDateTime, Is.EqualTo(doc.ApplExamPeriodDateTime));
        Assert.That(actual.ConsiderationSecondPartDate, Is.EqualTo(doc.ConsiderationSecondPartDate));
    }