Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

DACmx mock objects for unit testing in .net c#

Solved!
Go to solution

Hi

 

Does there exists any c# DACmx mock objects that can be used for unit testing in .net c#?

 

Best Regards

0 Kudos
Message 1 of 2
(2,107 Views)
Solution
Accepted by topic author Rasmussen

Dah, I have had this same question as well and my research tells me no. I began some major refactoring recently and realized how many dependencies I had on DAQmx objects littered throughout my code base. To make your code that uses DAQmx objects more testable, I have found it useful to apply something like the Facade design pattern to my software. This allows me to isolate NI dependencies in a single place and while enabling interaction with DAQmx or TDMS objects in an abstract fashion via the Facade class.

0 Kudos
Message 2 of 2
(2,071 Views)