I have a problem with declaring isSetup/isTeardown property (to detect if the module is in Setup/Teardown section). I'm quite sure it's because of my limited knowledge of C# Any help will be greatly appreciated.
Here is what I've tried so far:
IModule module; bool isModule = module.isSetup;This throws me an error "Use of unassigned local variable 'module' (CS0165)"
So I tried this:
IModule module = Ranorex.Core.Testing.IModule; bool isModule = module.isSetup;This returns error "'Ranorex.Core.Testing.IModule' is a 'type', which is not valid in the given context (CS0119)"
The interesting thing is, that module is correctly recognized (in both examples) by the code completion and offers both isSetup and isTeardown properties.
Could you please guide me to the right direction? Thank you!