C#: Add XML overlay tests.

This commit is contained in:
Michael Nebel
2025-11-10 15:09:28 +01:00
parent d6b7424e2c
commit 3492811cda
7 changed files with 51 additions and 0 deletions

View File

@@ -261,3 +261,16 @@ typeMentions
| Program.cs:60:10:60:16 | ProgramAttribute |
| Program.cs:61:16:61:19 | Void |
| Program.cs:64:37:64:45 | Attribute |
xmlLocatables
| web.changed.config:2:1:12:17 | configuration |
| web.changed.config:3:3:4:16 | system.web |
| web.changed.config:5:3:11:22 | system.webServer |
| web.changed.config:6:5:10:20 | httpProtocol |
| web.changed.config:7:7:9:23 | customHeaders |
| web.changed.config:8:9:8:42 | add |
| web.changed.config:8:9:8:42 | name=MyOption |
| web.changed.config:8:9:8:42 | value=1 |
| web.unchanged.config:2:1:6:17 | configuration |
| web.unchanged.config:3:3:5:16 | system.web |
| web.unchanged.config:4:5:4:37 | httpCookies |
| web.unchanged.config:4:5:4:37 | requireSSL=true |

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
</system.web>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="MyOption" value="1" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<httpCookies requireSSL="true"/>
</system.web>
</configuration>

View File

@@ -265,3 +265,10 @@ typeMentions
| Program.cs:60:10:60:16 | ProgramAttribute |
| Program.cs:61:16:61:19 | Void |
| Program.cs:64:37:64:45 | Attribute |
xmlLocatables
| web.changed.config:2:1:5:17 | configuration |
| web.changed.config:3:3:4:16 | system.web |
| web.unchanged.config:2:1:6:17 | configuration |
| web.unchanged.config:3:3:5:16 | system.web |
| web.unchanged.config:4:5:4:37 | httpCookies |
| web.unchanged.config:4:5:4:37 | requireSSL=true |

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
</system.web>
</configuration>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<httpCookies requireSSL="true"/>
</system.web>
</configuration>

View File

@@ -37,3 +37,5 @@ query predicate commentLines(CommentLine cl) { any() }
query predicate commentBlocks(CommentBlock cb) { any() }
query predicate typeMentions(TypeMention tm) { any() }
query predicate xmlLocatables(XmlLocatable xl) { any() }