Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7035679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:19:58+00:00 2026-05-28T01:19:58+00:00

In my current project we want to test our mapping from sql to datamodels

  • 0

In my current project we want to test our mapping from sql to datamodels through a set of integration tests.

For this we need to basically assert all public properties on an object.
Is there a way to automatically generate assert statements for all public properties on an object? Setting the expected values would be our job, but the laborious job of writing the numerous assert statements would be something a computer could do.

I’m thinking of using a T4 template or maybe harness the awesomeness of resharper?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:19:59+00:00Added an answer on May 28, 2026 at 1:19 am

    What you could use is the test generation of Visual Studio:

    1. Open the class file;
    2. Right-click within it;
    3. Click on the Create Unit Tests ... option
    4. Setup where you want to generate your tests from the dialog
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For my current project I want to be able to load some classes from
I want the location of the current execution project i.e in VB.NET/C# or the
My current project is in Rails. Coming from a Symfony (PHP) and Django (Python)
My current project uses NUnit for unit tests and to drive UATs written with
Our current project has ran into a circular dependency issue. Our business logic assembly
In my current project we are testing our ASP.NET GUI using WatiN and Mbunit
I'm busy making a CMS using MVC3. I want to test the current build
I'm using selenium to run some functional tests on the UI for our current
For unit testing you shouldn't test private methods, yes, but for integration tests (using
in my current project i use the MVP-Pattern and i want to register a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.