public void MapEntityToModel_Returns_IUserModel_When_Given_Null_Entities() { IUserModel modelFromTuple = _mapper.MapEntityToModel((null, null)); IUserModel modelFromParameters = _mapper.MapEntityToModel(null, null); Assert.That(modelFromTuple, Is.Not.Null.And.InstanceOf <IUserModel>()); Assert.That(modelFromParameters, Is.Not.Null.And.InstanceOf <IUserModel>()); Assert.AreEqual(modelFromTuple, modelFromParameters, $"{nameof(modelFromTuple)}: {modelFromTuple.GetHashCode()} != {nameof(modelFromParameters)}: {modelFromParameters.GetHashCode()}"); }