I know this is not officially supported but I am tryihg to apply Test Driven Development to NT strategies and indicators.
I've managed to set up my project in Visual Studio 2017 and add all the necessary references to NT to my test project so everything builds fine with no errors.
e.g. inside the body of my test class, this builds fine;
var obj = new MyCustomIndicator();
Message: Test method testMyCustomIndicator.UnitTest1.TestMethod1 threw exception: System.TypeInitializationException: The type initializer for '<Module>' threw an exception. ---> System.ArgumentNullException: Value cannot be null. Parameter name: ptr
My question to you is this - is there any way of instantiating an NT Strategy or Indicator from outside? If so, what are the additional setup calls I need to make?
many thanks
EDIT:
I see this issue has been raised before so I am not optimistic re: a solution.
Comment