Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 99018

Multiple Assertions in MSTest

$
0
0

I am developing a C# based Selenium .Net application testing suite using MSTest and am in fairly later stages of the development. I now feel the need to implement multiple assertions for a test case. As per my research, multiple assertions are not available in MSTest and I dont have the time to convert to Nunit. I would have to learn the infrastructure of Nunit all over again and it will be extremely time taking. Is there any way to have a similar functionality in MSTest.

My use case is pretty similar to verifying the properties of a user profile. For example:

Assert.Equal("Expected Value", firstName);
Assert.Equal("Expected Value", lastName);
Assert.Equal("Expected Value", country);

Now if the first assertion fails, I won't be able to assert rest of the values. Is there any way I can do this without going for Nunit?


Viewing all articles
Browse latest Browse all 99018

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>