FAQ Database Discussion Community


Visual Studio test explorer window does not find my tests after NUnit extension implementation

c#,visual-studio,unit-testing,nunit,test-explorer
I'm implementing a testing solution in Visual Studio 2013 Professional. I've chosen NUnit (version 2.6.4) as test framework. I have installed the NUnit test adapter in order to execute my tests also inside Visual Studio. Everything worked properly until I entered a NUnit extension class to get asserts failure messages......

nunit command in bash do not accept static command?

nunit
I have a Program.dll which I execute with Nunit GUI Runner on windows 7. Works perfect. The [Test] method is static. When I execute it through bash in linux, in the XML it says : signature is not correct: it must be an instance method. here is the method declaration...

Running NUnit tests on Mono on Windows

c#,windows,unit-testing,mono,nunit
I am new to Mono and I would like to be able to run tests on Mono. I created as simple unit test project in Visual Studio 2012 and compiled it against .NET 4.5. using NUnit.Framework; namespace ClassLibrary2.Tests { [TestFixture] public class Class1Tests { [Test] public void MyTest() { var...

MSVS. How do I tell NUnit to use /noshadow parameter when tests are executed?

visual-studio,nunit
I would like to send /noshadow parameter to nunit when I run my tests from MSVS. Basically I run tests by right mouse click on test icons located left to source code window. I don't know how to configure parameters that are sent to nunit then. ...

F# NUnit test comes back as not being run

f#,nunit,assert
I am working with VS 2013, F# and NUnit. It is worth noting I am novice with F#. I have added very basic test and when I attach debugger to NUnit and run it in debug mode breakpoint is being hit however test comes back as not being run. NUnit...

Fake calling Namespace to test reflection

c#,unit-testing,nunit,system.reflection
I have a piece of code that gets a specific portion of the namespace from the calling assembly. Now I want to unit test this code. Is there a way to fake the name of the calling namespace using NUnit without implementing the NUnit testcase in that particular namespace? Here...

Nunit - doesn't discover tests [no error-message]

c#,.net,visual-studio,unit-testing,nunit
Unit refuses to dsicover or run my tests in an assembly. This is not the case where Unit produces an error message like "Unable to find test in assembly". It simply doesn't discover that I have tests. I right-click the test-method and the test output shows: Discover test started ------...

open NUnit.Framework - the namespace or module is not defined. Referencing in F#

c#,visual-studio-2013,f#,nunit,nuget
I am using VS2013 Professional, F#, C# and Nunit. It is worth noting that this is my first attempt with F# so question is most likely stupid and solution is obvious. What I am trying to do is implement test cases using NUnit and use TestCaseSource attribute with TestCaseData. Test:...

Mocking a tree data structure

c#,data-structures,nunit,moq
I'm writing a program that takes a given binary tree and attempts to determine if the tree is balanced. The program expects a binary tree as an input, for example : 1,-1,-2,-3 would be represented with 1 as a root node and the subsequent.getLeft() (or .getRight() if the tree was...

Cannot have two operations in the same contract with the same name : Auto Generated Async Method

c#,wcf,nunit,nsubstitute
edit Correction: My Error was that Instead of using ChatService.IChatService I was using ReflectorLike.ChatServiceReference.IchatService. In other words , AFAIU I was referencing a reference to the Interface rather than the Interface it self. (If you find better way to explain that please suggest them I'll edit the answer later) If...

How to do a Nunit test with parameters?

c#,nunit
I want to do a [Test] which receives a parameter, and not using [TestCase] as this parameter can take multiple values. I can't seem to find a way to do this. Here is what I'd like to do: [Test] static public void NUnitWriter(int errorCode) { Assert.AreEqual (0, errorCode); } This...

NUnit produces empty empty parameter test when using TestCaseSource and objects

c#,visual-studio-2013,nunit,testcase
Using the sample on the NUnit website (http://www.nunit.org/index.php?p=testCaseSource&r=2.5): [TestCase] [TestCaseSource("DivideCases")] public void DivideTest(int n, int d, int q) { Assert.AreEqual(q, n / d); } object[] DivideCases = { new int[] {12, 3, 4}, new int[] {12, 2, 6}, new int[] {12, 4, 3} }; produces an empty parameter call to...

Mocking with Generic Repository / UnitOfWork

c#,entity-framework,unit-testing,nunit,rhino-mocks
How I can test Insert Method from Generic repo and service? I have this generic repo: IEnumerable<TEntity> Get( Expression<Func<TEntity, bool>> filter = null, Func<IQueryable<TEntity>, IOrderedQueryable<TEntity>> orderBy = null, string includeProperties = ""); TEntity GetById(object id); IEnumerable<TEntity> GetAll(); void Insert(TEntity entity); void Delete(object id); void Delete(TEntity entityToDelete); void Update(TEntity entityToUpdate); this...

Testing async method produces weird result

c#,.net,nunit
When I run my test code normally, NUnit informs me that the test has failed. The value of result.Contacts is 3 instead of the expected 1. When the testcode is run with a breakpoint on the assert statement in the test code, the test does not fail. I suspect this...

TypeInitializationException when using Nancy.Testing with NUnit test runner

c#,.net,nunit,nancy
I am writing a test using version 1.2 of Nancy and Nancy.Testing via NuGet. My test is written with NUnit 2.6.4 and looks like this: [Test] public async Task ShouldReturnSuccessfullyAuthenticatedUser() { // arrange var request = CreateRequest(); var userDocument = CreateUserDocumentFrom(request); await userRepository.AddAsync(userDocument); // act var response = browser.Post(Paths.Login, with...

Using Specflow and NUnit version 3 to run tests in paralel

c#,parallel-processing,nunit,specflow
I have a project using SpecFlow and NUnit 2.6.3 as my test provider. Currently it is working OK but now there is the requirement to run tests in parallel, as they become more and more heavy. Reading along, I can see that NUnit version 3 will support parallelism out of...

“Run Unit Tests” option is not there in VS 2013

c#,visual-studio,unit-testing,nunit
I am watching a video tutorial for unit testing. In that tutorial, when the lecturer clicks a right-click on Unit test class, one of the options there is "Run Unit Tests" whereas I am not getting that option. Here are the options my VS showing: Another thing is, when he...

Different Behavior when running nunit tests from project and from solution

entity-framework,nunit,resharper
I have various projects in a Solution with many tests, one of them use entities and has the following behaviour: If I right click run all tests on my project everything runs smoothly but if I right click on my solution and does the same I get: System.InvalidOperationException : No...

NUnit Test case creation

c#,nunit
I have Created testsuits like following. [TestCase(12,4,3)] [TestCase(m,n,o)] public void DivideTest(int n, int d, int q) { Assert.AreEqual( q, n / d ); } I have pass the variables m = 10, n = 2 and o = 5. But the second test case is not accessible. it throws the...

What is the Visual Studio TestTools equivalent of NUnit's Assert.Ignore?

visual-studio,nunit
The title says it all. If I want to ignore a test at run time, I can use NUnit's Assert.Ignore() call. However, I'm not using NUnit! There doesn't seem to be an Assert.Ignore() in Microsoft.VisualStudio.TestTools.UnitTesting. Are there any similar alternatives for Visual Studio's unit testing library?...

CruiseControl.NET showing type or namespace error when trying to build NUnit test project

nunit,cruisecontrol.net
I am trying to get CC.net to build and run my NUnit tests (CC.NET is on a separate machine). However when it hits the MyProject.Tests.csprog it bails with the exception: The type or namespace 'NUnit' could not be found (are you missing a using directive or an assembly reference?) The...

Why are nUnit tests just getting ignored when using TestCaseSource?

c#,.net,unit-testing,nunit
I am having a lot of difficulty getting the nUnit TestCaseSource attribute to work correctly in nUnit 2.6.4.14350. When running the unit tests through VS2010, it just says the tests are being ignored, without any additional information as to why. The Create test just appears greyed out on the test...

Get NUnit assertion failure message

c#,unit-testing,nunit,testng
I'm pretty new in testing. After some simple exercises with Visual Studio I have turned to Nunit test framework. What I'm looking for is a property or a method to use inside a [TearDown] test method that provides me a string that contains, in failure case, the error message. For...

NUnit & MOQ: Testing a try catch that calls another method when an Exception is caught

nunit,moq
I understand that the MOQ framework wasn't really designed to help in this instance, but perhaps you might be able to help... I have a method that uses a try/catch that calls a notification method whenever an exception is thrown. What I am trying to do is create an integration/unit...

selenium - internetexplorerdriver compatibility mode

c#,selenium,webdriver,nunit,compatibility-mode
Is there any way how to force webdriver/internetexplorerdriver to open a site in compatibility mode. Every time I run my tests by Nunit all the history and compatibility mode list (where was my site listed before) are cleaned. I can't change the code of the site. Can I add item...

Condition if for Nunit assert

c#,nunit,assert
I need to compare two Lists by NUnit's Assert.AreEqual. If this statement is false (lists not the same) - then I need find elements in lists which not the same. How I can use If statement for know- Assert return true or false?...

Is there a way to see if a selenium test is being ran via nunit or nunit-console?

selenium,nunit,nunit-console
So, I have a reasonable amount of Selenium Tests. I want them to run quietly in the background via a batch script, nunit-console, and RemoteWebDriver. I have this setup already. I want to also be able to run the same tests (with me watching, debugging, writing new tests, etc...) with...

How could I Mock this code?

c#,unit-testing,mocking,nunit,moq
I want to start mocking some code but I am unsure how to do it. I have read a few tutorials but I cannot apply it to my code (There maybe a reason behind it). I am using NUnit and Moq. (I have removed all other methods so I can...

Nunit does not recognize Concordion.NUnit addin

nunit,concordion
Steps taken: I downloaded and install NUnit. I downloaded Concordion.NET. I downloaded the Concordion.NET kickstarter (zip) I verified that the specification (HelloWorld.html) is marked as an embedded resource. I verified that the RequiredAddin("ConcordionNUnitAddin") assembly attribute was specified. I built the solution I copied the Concordion.NUnit.dll into the addin directory of...

RestSharp Moq Object Null Exception C# REST Unit Test

c#,rest,nunit,moq,restsharp
I'm having difficulties trying to figure this out. Any help is greatly appreciated. My restClient.Object gets a null exception. When I inspect the .Object of the restClient I get Message: Exception has been thrown by the target of an invocation. Inner Exception: Value cannot be null.Parameter name: source Stack Trace:...

Expressing LINQ .Single() statement is explicit NUnit Test

c#,nunit
I have the following test: [Test] public void ListContainsAnObjectOfTypeFoo() { list.Single(t => t.GetType() == typeof(foo)); } This "works" in the context that the test throws an exception and fails if an item of that type doesn't exist, or exists more than once. Semantically however, it's not so nice. is there...

F# module member uninitialized

f#,nunit,nullreferenceexception,fsunit
I'm writing unit tests in F# using FsUnit and NUnit, with the NUnit test adapter for VS2015 Ultimate CTP. I've come across an odd issue with a module member being null, where I wouldn't expect it to be. Is this an issue with the the code, or the way the...

How to do internal interfaces visible for Moq?

c#,unit-testing,nunit,moq,internal
I have 3 project in my C# solution. Signatures Structures Tests Signatures has public and internal interfaces. Also it has [assembly: InternalsVisibleTo("Structures")] [assembly: InternalsVisibleTo("Tests")] in AssemblyInfo.cs of. Structures has public and internal classes and [assembly: InternalsVisibleTo("Tests")] in AssemblyInfo.cs of. Tests has next source: <packages> <package id="Moq" version="4.2.1409.1722" targetFramework="net45" /> <package...

Assert.AreEqual() for objects Fail

c#,nunit
Assert.AreEqual() fails for 2 same objects. Getting error as :: Assert.AreEqual failed. Expected:. Actual:. Below is the sample: [TestMethod] public void testMultiplication() { Dollar five = new Dollar(5); Assert.AreEqual(new Dollar(10), five.times(2)); Assert.AreEqual(new Dollar(15), five.times(3)); } class Dollar { private int amount; public Dollar(int amount) { this.amount = amount; } public...

When will pdb files be copied to shadow copy directory?

nunit,pdb-files,opencover,shadow-copy
I am doing some modifications on OpenCover and NUnit to suit my needs. Briefly, I want to get coverage information even when shadow-copy is enabled in Nunit. However, OpenCover is unable to track an assembly when the pdb file is absent. When shadow-copy is enabled in NUnit, the assembly under...

How to pass Model value from Test class to Action Method in Controller class

asp.net-mvc,unit-testing,testing,nunit,nsubstitute
I am creating some Nunit tests for an MVC application. I am writing a test case for a methods in my Controller class. I am using Nsubstitute for Mocking the object. I am learning about Nunit and Nsubstitue and I don't know, how to pass my Model value which was...

How to write a fluent constraint in NUnit that requires parenthesis

c#,unit-testing,nunit,fluent-interface
I recently started working with the Constraint functionality of NUnit and ran into the following question. How can I write a constraint using the fluent expression syntax where the order of execution is important and in normal C# programming is solved with parenthesis? In the following example I define two...

Refactoring large methods in NUnit tests

c#,selenium,nunit
How do I manage large tests. I'm testing a webapplication and one of the features is, making a new order, where the user has to go through a couple of forms before the order will be made. I can write a selenium test in C# that tests the entire flow...

SetUp : Spring.Objects.Factory.ObjectDefinitionStoreException : Error registering object with name 'NHibernateSessionFactory' defined in 'assembly

nhibernate,nunit,nhibernate-mapping,spring.net
When I run a unit test, this is the error I'm getting: SetUp : Spring.Objects.Factory.ObjectDefinitionStoreException : Error registering object with name 'NHibernateSessionFactory' defined in 'assembly [Eiq.Middleware.Data.DomainRepository, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5c61376b85e43767], resource [Eiq.Middleware.Data.DomainRepository.Persistence.xml] line 15' : Could not resolve placeholder 'TDM.providerName'. at...

How to fix a lot of unit tests when results are changed

c#,unit-testing,nunit,resharper
I use Visual Studio with Resharper and NUnit test framework. Sometimes a small change in business logic code breaks a lot of unittests. It's OK, you know that the results of unittests would be different and new values are valid now. Is there a way to quick-fix all of them?...

How to run nunit tests with asp.net 5 projects, espically with ReSharper?

nunit,resharper,asp.net-5
I am developing an asp.net 5 application targeting dnx451. The asp.net 5 project relies some libraries with unit-tests written for nunit 2.x. So the reasonable choice for me is to use nunit for testing the asp.net 5 project. When I running the unit test in ReSharper , the ReSharper says...

AutoFixture AutoMoqData gets slow as more tests are added

nunit,autofixture,automoq
Using nunit 2.6.4 and AutoMoqData the Resharper runner appears to be evaluating all of the parameters to be passed into all tests prior to executing a single test, even if all I want to do is run a single test/small suite of tests. Right now (we have 1000's of tests)...

How to unittest value depends on MessageBox?

c#,unit-testing,nunit
I use NUnit to test unit and I have a method: class abc { private int a; public void myMethod() { if(MessageBox.Show("Sure?", "Title", MessageBoxButtons.YesNo) == DialogResult.Yes) a = 1; else a = 0; } } How do I write NUnit to test this method? Sorry for my English. Thank you...

how to ignore a RUN test

nunit,ignore
Assert.Ignore is used to ignore a test in Nunit. However, in my case I run tests, and if they have, for example, error code 2, I may choose to ignore the result for a while, but I still want it to be counted in the number of run test. But...

NUnit Categories not showing up in Visual Studio

unit-testing,visual-studio-2012,nunit
I want to custom group my tests by function so I'm using the nunit Category attribute, like this: [Test, Category("Cat1")] public void SomeMethod() { } [Test, Category("Cat2")] public void AnotherMethod() { } But in Visual Studio the categories do not show up, all I see are the defaults to group...

Create Unit test for Xsockets

c#,.net,unit-testing,nunit
I'm trying to better understand how to use unit tests. I want to test Send and Receive in Xsockets with Nunit. Right now when I run the test nothing is happening I just want to create the listener and then call invoke, then wait and update the result value. I...

System.ComponentModel.Win32Exception when executing F# Nunit unit test code with Mono

unit-testing,f#,nunit
I'm trying to use F# unittest on Mono. I use Mac OS X. I downloaded and copied NUNit frameworks. I have the following environments nunitFramework=.../bin/mono/NUnit.2.6.4/nunit.framework.dll console=.../bin/mono/NUnit.2.6.4/nunit-console.exe fsUnit=.../bin/mono/NUnit.2.6.4/FsUnit.NUnit.dll This is F# code: namespace HelloWorld.Core module Hello = let SayHello name = "Hello" This is the unittest for it. module HelloWorld.Tests.Hello open...

NUnit Setup seems to not call WebDriver after first test completes

selenium,nunit
I'm running into an issue that seems to be related to webdriver/nunit. On the initial running my first test [Setup] and [Teardown] work. When the system tries to run my next test, which requires a [Setup] it doesn't seem as though the WebDriver is called. [SetUp] //This has to be...

I cannot debug two projects at once - one with Resharper NUnit tests

debugging,visual-studio-2013,nunit,resharper
My team has a solution with multiple projects. One of these projects is an ASP.NET MVC website. Another project contains NUnit tests. We launch these NUnit tests inside Visual Studio 2013 with Resharper 8.2.2. Another developer on my team is able debug both the MVC project and the NUnit tests...

Change name of NUnit test

c#,.net,unit-testing,nunit
I want my unit-tests based on NUnit framework named a bit more human readable in Visual Studio test explorer. For example instead of having Test_Case_1 or TestCase1 I would better have something like Test Case #1, Category: First, Category: Second (by assigning values from [Category] attributes as well), with spaces...

Nsubstitute Calls Method in When even though there is DoNotCallBase

c#,unit-testing,mocking,nunit,nsubstitute
I am partially mocking a class that has these two methods: public void EmitTo(string connectionId, ChatMessage message) { Clients.Client(connectionId).broadcastMessage(message.User.UserName, message.Message); } public virtual void Broadcast(ChatMessage message) { Clients.All.broadcastMessage(message.User.UserName, message.Message); } In my test [SetUp] I have these calls: hub = Substitute.ForPartsOf<ChatHub>(myMockedClient, context, groupManager); hub.When(x => x.Broadcast(Arg.Any<ChatMessage>())).DoNotCallBase(); hub.When(x...

How to have dynamic Nunit TestCaseSource in C#?

c#,nunit,mcs
What I'd like to do is exactly the first example from this page but... http://nunit.org/index.php?p=testCaseSource&r=2.5 with value that I can change static object[] DivideCases = { for (int i = 0; i < qtyCmd(); i++) { new object[] { getCmd[i] }, } }; qtyCmd is just a static method which...

Dependencies in Unit Tests

c#,unit-testing,nunit
From what I've read on the subject, each unit test should be independent and not rely on the results or success/failure of any other test. Makes good sense to me. How best to write tests that have dependencies then? Take the simple example like a file system that has a...

NUnit subsequence assertion

c#,.net,nunit
NUnit has various ways to test collections against each other with CollectionAssert and Collection Constraints. But I do not see a way to test if one IEnumerable is a subsequence of another, i.e. it is subset with elements in the same order as in the superset. Am I overlooking something,...

Run Nunit precompiled test

c#,nunit
I have a project containing Nunit test. I have the code project with all interfaces implemented but no code. All function throws exceptions. My gol is to give someone else the implemntation of the code. His job will be done when the all tests will be green. What I'd like...

Define pre-processor flag in one project and use it in another

c#,unit-testing,nunit
I have a notification service responsible for emailing a variety of external clients based on specific criteria's. Obviously, we route all notifications using pre-processor directives to internal emails when testing in QA. I have a suite of unit tests that verify which email address will be used. Problem I have...

How to unit test delegate was received in base class method?

c#,unit-testing,delegates,nunit,nsubstitute
I currently have a base service class that all my services extend. This is what one of the methods look like: protected internal virtual T PerformServiceOperationWithExceptionHandling<T>(Func<T> func) { try { return func.Invoke(); } ... } In the derived classes I call the method like this: public AddGuestResponse AddGuest(AddGuestRequest addGuestRequest) {...

How to use NUnit 3 in VS2015RC

c#,nunit,portable-class-library,visual-studio-2015,nunit-3.0
Is it possible to use NUnit3 Beta in VS2015RC? I've just created a new Library Project (Package) and added NUnit and created a simple test to show the errors I'm getting. Does it have some dependency on an older version of the framework? project.json Test Class Update The Release Notes...

Nunit tests are not found on tfs 2013 although NUnit test adapter package is used

unit-testing,tfs,nunit,tfsbuild,tfs2013
I have a simple application and Nunit unit test project with 2 tests to test that app. I've managed to have unit tests discovered and run locally in Visual studio 2013 but when trying to build application and run these unit tests on TFS 2013 test runner does not find...

nunit/mbunit parameterized SetUp

nunit,automated-tests,fixtures,mbunit
I'd like to provide parameterized data for the setup of a test. Something like this: [TestCase("1", "2") [TestCase("a", "b") public class TestFixture { [SetUp] public void SetUp(string x, string y) { Console.WriteLine("Setup with {0}, {1}", x, y); } [Test] public void Test() {...} } But I can only manage to...

ReSharper and NUnit's multiple domains

nunit,resharper
I recently had to enable this option in ReSharper: Use separate AppDomain for each assembly with tests Looking at the NUnit documentation, I suspect the option above executes NUnit with the parameter "domain/multiple", for which "a separate test domain is created for each assembly". Could you please confirm me that...

NUnit keeps running the wrong version of a .dll

c#,nunit,inversion-of-control,castle-windsor,nlog
I am using the NUnit 2.6.4 test runner. I am running from an .nunit project file that loads my .csproj test. It keeps running the wrong version of a dependency. Background: I have castle windsor 3.3 using the NLog facility. I am using NLog 3.2. By default Windsor tries to...

How to test controller action that serializes a view

c#,asp.net-mvc,nunit,moq
Alright so I am trying to test a controller result to make sure it is returning the right values but I am running into a number of problems with mocking controller contexts. All I want to do is test if someone enters a number on a page if the JsonResult...

How to use NUnit with F# properly?

f#,nunit,fsunit
I have stucked with the unit testing. I have the following source code: module SampleTest open FsUnit open NUnit.Framework [<TestFixture>] [<Category("Category name")>] type DoSthTest() = let mutable state = [] [<SetUp>] member public x.``run before test``() = state = [] [<Test>] member x.``add item``() = state <- List.append state [1]...

How to programmatically tell NUnit to repeat a test?

c#,nunit
How to programmatically tell NUnit to repeat a test? Background: I'm running NUnit from within my C# code, using a SimpleNameFilter and a RemoteTestRunner. My application reads a csv file, TestList.csv, that specifies what tests to run. Up to that point everything works ok. Problem: The problem is when I...

Mocking out a specific method during a unit test

c#,unit-testing,nunit,moq
I'm relatively new to unit testing, and brand new to Moq. I have been tasked with writing up some unit tests for some pre-existing code. I am struggling with the following method, as it makes a call to model.importing.RunJob, which as the name suggests, kicks off a job. Obviously, I...

NUnit throws System.InvalidOperationException: “All test threads are blocked.”

c#,multithreading,unit-testing,nunit
Today I went to run my NUnit tests, and found suddenly that a ton were failing! The cause of nearly all failures was the same: System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation. ----> System.InvalidOperationException : All test threads are blocked. Did you start new threads...

NHibernate SchemaExport.Execute does not create table

c#,nhibernate,nunit,nhibernate-configuration
Learning NHibernate by following this tutorial Your first NHibernate based application and I got to the point where you call new SchemaExport(cfg).Execute(true, true, false); in a test method to export the schema (create the Product table) for verifying NHibernate was set up correctly [Test] public void Can_generate_schema() { var cfg...

NUnit and Selenium WebDriver

visual-studio-2013,selenium-webdriver,nunit
I was working on setting up Selenium in a project today, and the thought came to mind: "Should I be using the NUnit framework in correlation with my Selenium tests?" Here's my concern with using the NUnit framework: From the NUnit website, it states that: "NUnit is a unit-testing framework...

TFS Build Server not running NUnit TearDown

tfs,msbuild,nunit,build-process,tfsbuild
I have a global teardown in my unit tests as below: [SetUpFixture] public partial class TestRunTeardown { [TearDown] public static void Teardown() { Trace.WriteLine("getting to tear down"); } } The trace outputs in my local window pointing to the same database, but when I run on the TFS build server...

Nunit runsTestCase with a TestCaseSource with the first iteration having no parameters? Why?

c#,unit-testing,nunit,testcase,testcasesource
Hi I am new to Nunit and I am passing a series of objects to a TestCase as a TestCaseSource. For some reason though Nunit seems to run the test first with no parameters passed to it which results in an ignored output: The test: private readonly object[] _nunitIsWeird =...

Unit Test WPF Control Get Access to Child Dialog

c#,wpf,unit-testing,nunit,uia
We are using NUnit to test a WPF control. The text fixture basically opens a test window containing the control to be tested on a new thread. Then the Microsoft UI Automation (UIA) is used to interact with the control. The new thread shows the window and starts the dispatcher....