Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saikrishnav/testfxstaext
STA extension for MSTEST adapter
https://github.com/saikrishnav/testfxstaext
microsoft mstestv2 vstest
Last synced: about 2 months ago
JSON representation
STA extension for MSTEST adapter
- Host: GitHub
- URL: https://github.com/saikrishnav/testfxstaext
- Owner: saikrishnav
- License: mit
- Created: 2017-02-02T05:29:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-02T13:27:11.000Z (almost 7 years ago)
- Last Synced: 2023-10-20T22:56:59.732Z (about 1 year ago)
- Topics: microsoft, mstestv2, vstest
- Language: C#
- Size: 18.6 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TestFx STA Extension
STA extension for MSTest framework and adapter
Adds the ability to run tests in STA thread for unit tests that depend on COM, OLE and UI components.
Usage 1:
```C#
[STATestClass] // Runs all tests [ test1, test2, test3 ] in this class in STA thread
public class SampleTestClass
{
[TestMethod]
public void Test1 () {....}
[TestMethod]
public void Test2 () {....}
[STATestMethod] // Using STATestMethod inside a class which is already marked STA is redundant
public void Test3 () {....}
}
```
Usage 2:
```C#
[TestClass] // Runs all tests except Test3 in this class as MTA
public class SampleTestClass
{
[TestMethod]
public void Test1 () {....}
[TestMethod]
public void Test2 () {....}
[STATestMethod] // Class is NOT marked as STA - so only this method runs in STA - above tests run in MTA
public void Test3 () {....}
}
```