Re: expose class declared in unittest

2014-06-25 Thread rcor via Digitalmars-d-learn
On Wednesday, 25 June 2014 at 20:25:50 UTC, rcor wrote: Dummy will not exist unless compiled with -unittest, correct? Never mind, just verified that this is true. Thanks again.

Re: expose class declared in unittest

2014-06-25 Thread rcor via Digitalmars-d-learn
I don't completely understand your problem, but have you tried marking the class as static? static class Dummy { ... } I was about to post links to the actual code to make it more clear, but that did the trick. Thanks for the fast reply. Just to make sure - given: unittest { static class

Re: expose class declared in unittest

2014-06-25 Thread Meta via Digitalmars-d-learn
On Wednesday, 25 June 2014 at 20:17:35 UTC, rcor wrote: I'm trying to create a set of utility functions that cache objects of various types loaded from json files, but having trouble testing it. One function I'd like to test uses new to instantiate an object based on a compile-time parameter: