Teacher TestDriven.NET does not work with Silverlight 3 and MSTest

I am currently working on a project in Visual Studio 2010 that uses MSTest for Silverlight. I recently converted this project from Visual Studio 2008, where Silverlight-based tests ran without problems. However, when I try to run unit tests in the scope of the test class (or beyond, that is, "Run all tests") in VS 2010 using TestDriven.NET, I get the following error:

The target type does not contain tests from a known test environment or the Home method.

If the test does not require any installation method or constructor, TestDriven.NET will run a separate test. It seems to me that for some reason it does not execute the test method [TestInitialize].

Any thoughts?

+3
source share
1 answer

What do you mean by "MSTest for Silverlight"?

1

You cannot use traditional unit testing modules because they are not designed for Silverlight libraries (for example, the VS2010 testing project)
That's why Microsoft came up with the "Silverlight Unit Test Framework"

2

Tests in the Silverlight Unit Testing Framework can only be run in the browser, not in the Testdriven.NET test

+2
source

Source: https://habr.com/ru/post/1752077/


All Articles