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 8515735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:13:47+00:00 2026-06-11T05:13:47+00:00

Alright, so I’m using the Microsoft Test Framework for testing and I need to

  • 0

Alright, so I’m using the Microsoft Test Framework for testing and I need to somehow build dependent tests. Why you might say? Because one of the tests ensures that I can load data from the database and the others need to operate against that set — making the round trips is something we don’t want to do to keep the automated nature of the tests efficient.

I have been searching and just can’t seem to find a way to do a couple of things:

  1. Decorate the test methods so that they are seen as dependent.
  2. Persist the set between tests.

What have I tried?

Well, regarding the decoration for dependent tests, not much because I can’t seem to find an attribute that’s built for that.

Regarding the persistence of the set, I’ve tried a private class variable and adding to the Properties of the test context. Both of those have resulted in the loss of the set between tests.

I hope that you can help me out here!

  • 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-06-11T05:13:48+00:00Added an answer on June 11, 2026 at 5:13 am

    I think, what you need is an orderer test list. You can create this in you test project under ‘New Item…’. The ordered test list is a list with tests in a specified order that are executed in the same context.

    By the way: Unit tests should test only the smallest unit in an application, not a huge set of operations. Because if one unit is not working correctly you can find easy wich one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Alright, i'm making a small game, and I need to limit my FPS, because,
Alright so i need to open a .txt file that will be created in
Alright, this is driving me nuts because my regex is working on Rubular, but
Alright, here's what I'm trying to do. I'm attempting to write a quick build
Alright I am practicing using cURL to login to different webservices. For this pariticular
Alright, So I have an issue that is a bit weird. I am using
Alright, I'm using form.target to open content in a new window. However, when I
Alright I have a table where I need to get the relevant date from
Alright, I'm working on a (supposed-to-be) simple counting script using ncurses. Everytime it increments
Alright so lets say I have these files in vendor/assets/javascript/ : modernizer.js lightbox.js highchart.js

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.