File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
RubberduckTests/Inspections Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -295,12 +295,32 @@ arg1.Add 7
295
295
296
296
[ Test ]
297
297
[ Category ( "Inspections" ) ]
298
- public void ObjectVariableNotSet_EnumVariable_ReturnsNoResult ( )
298
+ public void ObjectVariableNotSet_UDT_ReturnsNoResult ( )
299
299
{
300
300
301
301
var expectResultCount = 0 ;
302
302
var input =
303
303
@"
304
+ Private Type TTest
305
+ Foo As Long
306
+ Bar As String
307
+ End Type
308
+
309
+ Private Sub TestUDT()
310
+ Dim tt As TTest
311
+ tt.Foo = 42
312
+ End Sub" ;
313
+ AssertInputCodeYieldsExpectedInspectionResultCount ( input , expectResultCount ) ;
314
+ }
315
+
316
+ [ Test ]
317
+ [ Category ( "Inspections" ) ]
318
+ public void ObjectVariableNotSet_EnumVariable_ReturnsNoResult ( )
319
+ {
320
+
321
+ var expectResultCount = 0 ;
322
+ var input =
323
+ @"
304
324
Enum TestEnum
305
325
EnumOne
306
326
EnumTwo
You can’t perform that action at this time.
0 commit comments