File tree 1 file changed +22
-0
lines changed
RubberduckTests/SmartIndenter
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,28 @@ public void DeclarationLineAlignsCorrectly()
29
29
Assert . IsTrue ( expected . SequenceEqual ( actual ) ) ;
30
30
}
31
31
32
+ // https://github.com/rubberduck-vba/Rubberduck/issues/4795
33
+ [ Test ]
34
+ [ Category ( "Indenter" ) ]
35
+ public void DeclarationPtrSafeLineAlignsCorrectly ( )
36
+ {
37
+ var code = new [ ]
38
+ {
39
+ @"Private Declare PtrSafe Function Foo Lib ""bar.dll"" _" ,
40
+ "(x As Long y As Long) As LongPtr"
41
+ } ;
42
+
43
+ var expected = new [ ]
44
+ {
45
+ @"Private Declare PtrSafe Function Foo Lib ""bar.dll"" _" ,
46
+ " (x As Long y As Long) As LongPtr"
47
+ } ;
48
+
49
+ var indenter = new Indenter ( null , ( ) => IndenterSettingsTests . GetMockIndenterSettings ( ) ) ;
50
+ var actual = indenter . Indent ( code ) ;
51
+ Assert . IsTrue ( expected . SequenceEqual ( actual ) ) ;
52
+ }
53
+
32
54
[ Test ]
33
55
[ Category ( "Indenter" ) ]
34
56
public void FunctionParametersAlignCorrectly ( )
You can’t perform that action at this time.
0 commit comments