Hell
I have a small and strange problem
I am trying to write some testcases for NUnit 2.1, and I have an Abstract class XYZ that defines
a XmlDocument and functions that manipulates it, for example getAnElement(Name) which uses
SelectSingleNode to find and return the element. I obvoiusly then uses this set of funtions in subclasses
Everything is fine this long, but when I am trying to write a testcase för NUnit I get a NullReferenceException
in the unittests. I have created a mockClass that inherit the abstract class for testing purposes, and I have
also singled out the problem to the lines where I use SelectSingleNode on the XmlDocument in the
abstract class.
I am lost here, anybody knows whats up?
GurriBurri - 28 May 2004 20:51 GMT
I forgot: When I try the code with a normal teststub i.e. not in the NUnit testcase it works fine. Its only in the NUnit testclass that I get the NullReferenceException.
----- GurriBurri wrote: ----
Hell
I have a small and strange problem
I am trying to write some testcases for NUnit 2.1, and I have an Abstract class XYZ that defines
a XmlDocument and functions that manipulates it, for example getAnElement(Name) which uses
SelectSingleNode to find and return the element. I obvoiusly then uses this set of funtions in subclasses
Everything is fine this long, but when I am trying to write a testcase för NUnit I get a NullReferenceException
in the unittests. I have created a mockClass that inherit the abstract class for testing purposes, and I have
also singled out the problem to the lines where I use SelectSingleNode on the XmlDocument in the
abstract class.
I am lost here, anybody knows whats up?