Livet er vidunderligt RSS 2.0
# Wednesday, 25 August 2010

NUnit

// An STA thread will be created and used to run
// all the tests in the assembly
[assembly:RequiresSTA]

...

// TestFixture requiring a separate thread
[TestFixture, RequiresSTA]
public class FixtureRequiringSTA
{
  // An STA thread will be created and all
  // tests in the fixture will run on it
  // unless the containing assembly is
  // already running on an STA Thread
}

[TestFixture]
public class AnotherFixture
{
  [Test, RequiresSTA]
  public void TestRequiringSTA()
  {
    // A separate thread will be created for this test
// unless the containing fixture is already running
// in the STA.
  }
}

Wednesday, 25 August 2010 11:46:10 (Romance Daylight Time, UTC+02:00)  #    Comments [0] - Trackback
Software Development
Comments are closed.
Archive
<2018 November>
SunMonTueWedThuFriSat
28293031123
45678910
11121314151617
18192021222324
2526272829301
2345678
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2018
Christian R. Glinnum
Sign In
Statistics
Total Posts: 128
This Year: 0
This Month: 0
This Week: 0
Comments: 16
Themes
All Content © 2018, Christian R. Glinnum
DasBlog theme 'Business' created by Christoph De Baene (delarou)