Red Gate forums :: View topic - Testing obfuscated .dll's :?:
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

Testing obfuscated .dll's :?:

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
eric-914



Joined: 30 Nov 2012
Posts: 28

PostPosted: Mon Nov 18, 2013 4:21 pm    Post subject: Testing obfuscated .dll's :?: Reply with quote

I'm wondering if someone's got suggestions about my situation:

I've got tests that reference classes in my .dll. Now after obfuscation, these class names do not exist, they've been changed.

This, will of course, cause the tests to fail, as they can't load the named class type: TypeLoadException

Anybody have an idea on how to flag the test (or testclass) to NOT execute?

I only have two ideas:
1) Categorize the test (or testclass), and run the tests ignoring those of that category. Unfortunately, this doesn't work. My guess is the testclass still has to load before NUnit can read it to be ignored. And the loading of the test class loads its references.

2) Use a compilation directive that excludes problem tests. The problem I have here is I have to recompile the test classes I already have.

#2 is probably what I'll go with, but I'm wondering if someone else has a better idea?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group