Commit 7231467
feat(conformance,csharp): WARN envelope-shape assertion (FR5c-finalize follow-up)
Bring the C# conformance runner to envelope-shape parity with the TS reference
(commit 3987527). The runner now asserts per-element envelope shape on
`warnings[]` (code + source.format + source.files + source.jsonPath) when
`expected-errors.json` declares warning entries with `source`. Mirrors the
error-side cross-port contract per ADR-0009 / FR5c.
Surface warning envelopes from the C# loader's existing
`LoadResult.EnvelopeWarnings` (added in FR5c) onto the conformance adapter's
LoadOutcome, mirroring the error normalization (relativize files, preserve
jsonPath/format).
Suppress the "no expected-warnings.json → zero warnings" fallback when
`expected-errors.json` is present (the envelope path handles the count
assertion).
Test count: 343 → 343 (no count change — the runner extension activates
envelope assertion on the existing `warning-duplicate-declaration` fixture).
All 343 conformance scenarios pass with envelope assertion active.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3987527 commit 7231467
3 files changed
Lines changed: 119 additions & 27 deletions
File tree
- server/csharp/MetaObjects.Conformance.Tests
Lines changed: 28 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
42 | 49 | | |
43 | | - | |
| 50 | + | |
| 51 | + | |
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
| |||
76 | 84 | | |
77 | 85 | | |
78 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
79 | 96 | | |
80 | 97 | | |
81 | 98 | | |
82 | 99 | | |
83 | | - | |
| 100 | + | |
| 101 | + | |
84 | 102 | | |
85 | 103 | | |
86 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
87 | 111 | | |
88 | | - | |
89 | 112 | | |
90 | 113 | | |
91 | | - | |
| 114 | + | |
92 | 115 | | |
93 | 116 | | |
94 | 117 | | |
| |||
Lines changed: 47 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
155 | 167 | | |
156 | | - | |
| 168 | + | |
157 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
158 | 203 | | |
159 | 204 | | |
160 | 205 | | |
| |||
Lines changed: 44 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
65 | | - | |
| 71 | + | |
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
| |||
92 | 98 | | |
93 | 99 | | |
94 | 100 | | |
95 | | - | |
| 101 | + | |
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
| |||
104 | 110 | | |
105 | 111 | | |
106 | 112 | | |
107 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
108 | 139 | | |
109 | | - | |
| 140 | + | |
110 | 141 | | |
111 | 142 | | |
112 | 143 | | |
113 | | - | |
| 144 | + | |
114 | 145 | | |
115 | 146 | | |
116 | 147 | | |
117 | | - | |
| 148 | + | |
118 | 149 | | |
119 | 150 | | |
120 | 151 | | |
121 | 152 | | |
122 | 153 | | |
123 | 154 | | |
124 | 155 | | |
125 | | - | |
| 156 | + | |
126 | 157 | | |
127 | 158 | | |
128 | 159 | | |
129 | | - | |
| 160 | + | |
130 | 161 | | |
131 | 162 | | |
132 | 163 | | |
133 | 164 | | |
134 | | - | |
| 165 | + | |
135 | 166 | | |
136 | 167 | | |
137 | 168 | | |
| |||
157 | 188 | | |
158 | 189 | | |
159 | 190 | | |
160 | | - | |
| 191 | + | |
161 | 192 | | |
162 | 193 | | |
163 | | - | |
| 194 | + | |
164 | 195 | | |
165 | 196 | | |
166 | 197 | | |
167 | | - | |
| 198 | + | |
168 | 199 | | |
169 | 200 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
| 201 | + | |
178 | 202 | | |
179 | 203 | | |
180 | 204 | | |
| |||
0 commit comments