Microsoft .NET Unit Testing Framework (MSTest)
3
votes
1answer
21 views
NullReferenceException when calling async method of mocked object
I'm trying to unit test the LoginExecute method of the following ViewModel using MOQ
public class LoginViewModel : ViewModelBase, ILoginViewModel
{
INavigationService navigationService;
...
0
votes
0answers
9 views
IO Exception Could not load file or assembly 'System.Runtime' Error when using JsonConvert.SerializeObject
I've created a Portable Class Library, using the nuget packages for JSON.NET and the Async package
when I try and serialize a class within the portable library I get this error, in my unit test ...
0
votes
0answers
50 views
Testing how many time a for loop has run
Hi I have a method witch has two for loops.The method looks like this:
public ElearningSessionsDTO FilterElearningSession(IEnumerable<GetELearningSessionsForStudent_Result> eLearningSession)
...
0
votes
1answer
10 views
How to automate the uni test code generation in MStest
I am using MSTest to unit test my code. if i want to automate the unit test code for all my public API, how do i do it.
I am using VS 2010 . I am new to MSTest . Can anyone guide me on how to acheive ...
0
votes
0answers
23 views
Event Handling with MSTest Async/Await Testing
I'm writing unit tests using VS2012 for a class that uses async/await pattern on a method. The class also has events which I want to write to the TestContext so they are visible in the test output. ...
0
votes
0answers
11 views
MSTest Parameter Using/Problems
Alright that's the current situation:
we have one configured TFS-2010, with some scheduled and some manual builds
the builds are running UITests
some special tests cannot be configured by TFS (for ...
2
votes
1answer
19 views
Why DataDriven tests no longer run on Jenkins when using MSTest?
I have a suite of Webdriver tests which are written with C# and I am using MSTest as a runner. At this point NUnit is not an option, so I need to figure this out how to make it work with the current ...
0
votes
0answers
8 views
Test Project Which Supports Both MsTest and nUnit
As first auto test acceptance we have 3 levels of testings:
Unit Test - These are executed on developers machine.
Extended unit test - These combine few units and test the interaction and executed ...
1
vote
1answer
34 views
TFSBuild, execute Selenium UI Tests on being built code before deploy
I've a set of Selenium tests using the C# WebDriver and MSTest (Visual Studio Test).
Hopefully, I could integrate these tests successfully and they're working as expected.
Sadly, I found a big ...
1
vote
0answers
25 views
Visual Studio 2012 Update 3 Managed Test for C++/CLI
I am having issues using visual studio 2012 managed test project with a c++/cli dll.
The first problem is the warnging MSB3274 could not be resolved because it was built against the ...
0
votes
1answer
13 views
Get absolute path for MSTest Out folder
I have a test with the following attribute:
[DeploymentItem(@"SampleData\do12.vas.pdws.xls")]
When I run the test, my xls file is copied to "TestResults\User Date\Out" folder.
How can I determine ...
0
votes
1answer
35 views
MSTest execution stuck when running through command line
I am attempting to run UI tests (using Windows Automation API) on a WPF application, on a CI basis. I have associated my solution with a .testsettings file and linked my test .dll to the build ...
0
votes
2answers
47 views
MS Test for Void Methods
I have a void method, which i need to unit test, can some one please help me how to do it
[TestMethod()]
public void ProcessProductFeedTest()
{
// TODO: Initialize to an appropriate value
...
0
votes
1answer
35 views
Firefoxdriver does not launch int test unit c#
I have te code below:
[TestClass]
public class UnitTest3
{
private static FirefoxDriver _webDriver;
private TestContext testContextInstance;
private static string _baseUrl;
public ...
0
votes
1answer
47 views
How to mock Application.Current for unit-testing?
I have this:
<Image.Effect>
<fx:GrayscaleEffect DesaturationFactor="0"/>
</Image.Effect>
and this:
public class GrayscaleEffect : ShaderEffect{
private static PixelShader ...