A
Andy B.
I have the following lines in a class:
private _State as string = nothing
'Then later in a validate method I have the line:
'See if the string is either less than or greater than 2 in size.
If _State.Length <> 2 Then
When I run a unit test I get the annoying Object instance set to a null
(nothing) reference. What is wrong with the line above?
private _State as string = nothing
'Then later in a validate method I have the line:
'See if the string is either less than or greater than 2 in size.
If _State.Length <> 2 Then
When I run a unit test I get the annoying Object instance set to a null
(nothing) reference. What is wrong with the line above?