Skip to content

Commit 3cdc379

Browse files
committed
Reference Microsoft.Win32 instead of Microsoft.VisualStudio in tests
1 parent f0a3cad commit 3cdc379

7 files changed

Lines changed: 14 additions & 14 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers.Test/OrderingRules/SA1208UnitTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ class A
302302
public async Task TestPreprocessorDirectivesAsync()
303303
{
304304
var testCode = @"using System;
305-
using Microsoft.VisualStudio;
305+
using Microsoft.Win32;
306306
using MyList = System.Collections.Generic.List<int>;
307307
using Microsoft.CodeAnalysis;
308308
@@ -321,7 +321,7 @@ public async Task TestPreprocessorDirectivesAsync()
321321

322322
var fixedTestCode = @"using System;
323323
using Microsoft.CodeAnalysis;
324-
using Microsoft.VisualStudio;
324+
using Microsoft.Win32;
325325
using MyList = System.Collections.Generic.List<int>;
326326
327327
#if true

StyleCop.Analyzers/StyleCop.Analyzers.Test/OrderingRules/SA1209UnitTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public async Task TestPreprocessorDirectivesAsync()
242242
{
243243
var testCode = @"
244244
using System;
245-
using Microsoft.VisualStudio;
245+
using Microsoft.Win32;
246246
using MyList = System.Collections.Generic.List<int>;
247247
248248
#if true
@@ -255,7 +255,7 @@ public async Task TestPreprocessorDirectivesAsync()
255255

256256
var fixedTestCode = @"
257257
using System;
258-
using Microsoft.VisualStudio;
258+
using Microsoft.Win32;
259259
using MyList = System.Collections.Generic.List<int>;
260260
261261
#if true

StyleCop.Analyzers/StyleCop.Analyzers.Test/OrderingRules/SA1210CombinedSystemDirectivesUnitTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public async Task TestPreprocessorDirectivesAsync()
180180
{
181181
var testCode = @"
182182
using System;
183-
using Microsoft.VisualStudio;
183+
using Microsoft.Win32;
184184
using MyList = System.Collections.Generic.List<int>;
185185
186186
#if true
@@ -192,7 +192,7 @@ public async Task TestPreprocessorDirectivesAsync()
192192
#endif";
193193

194194
var fixedTestCode = @"
195-
using Microsoft.VisualStudio;
195+
using Microsoft.Win32;
196196
using System;
197197
using MyList = System.Collections.Generic.List<int>;
198198

StyleCop.Analyzers/StyleCop.Analyzers.Test/OrderingRules/SA1210UnitTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ public async Task TestPreprocessorDirectivesAsync()
289289
{
290290
var testCode = @"
291291
using System;
292-
using Microsoft.VisualStudio;
292+
using Microsoft.Win32;
293293
using MyList = System.Collections.Generic.List<int>;
294294
295295
#if true
@@ -302,7 +302,7 @@ public async Task TestPreprocessorDirectivesAsync()
302302

303303
var fixedTestCode = @"
304304
using System;
305-
using Microsoft.VisualStudio;
305+
using Microsoft.Win32;
306306
using MyList = System.Collections.Generic.List<int>;
307307
308308
#if true

StyleCop.Analyzers/StyleCop.Analyzers.Test/OrderingRules/SA1211UnitTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public async Task TestPreprocessorDirectivesAsync()
164164
{
165165
var testCode = @"
166166
using System;
167-
using Microsoft.VisualStudio;
167+
using Microsoft.Win32;
168168
using MyList = System.Collections.Generic.List<int>;
169169
170170
#if true
@@ -177,7 +177,7 @@ public async Task TestPreprocessorDirectivesAsync()
177177

178178
var fixedTestCode = @"
179179
using System;
180-
using Microsoft.VisualStudio;
180+
using Microsoft.Win32;
181181
using MyList = System.Collections.Generic.List<int>;
182182
183183
#if true

StyleCop.Analyzers/StyleCop.Analyzers.Test/OrderingRules/SA1216UnitTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public async Task TestPreprocessorDirectivesAsync()
136136
{
137137
var testCode = @"
138138
using System;
139-
using Microsoft.VisualStudio;
139+
using Microsoft.Win32;
140140
using static System.String;
141141
using MyList = System.Collections.Generic.List<int>;
142142
@@ -152,7 +152,7 @@ public async Task TestPreprocessorDirectivesAsync()
152152

153153
var fixedTestCode = @"
154154
using System;
155-
using Microsoft.VisualStudio;
155+
using Microsoft.Win32;
156156
using static System.String;
157157
using MyList = System.Collections.Generic.List<int>;
158158

StyleCop.Analyzers/StyleCop.Analyzers.Test/OrderingRules/SA1217UnitTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public async Task TestPreprocessorDirectivesAsync()
195195
{
196196
var testCode = @"
197197
using System;
198-
using Microsoft.VisualStudio;
198+
using Microsoft.Win32;
199199
using MyList = System.Collections.Generic.List<int>;
200200
using static System.Tuple;
201201
@@ -209,7 +209,7 @@ public async Task TestPreprocessorDirectivesAsync()
209209

210210
var fixedTestCode = @"
211211
using System;
212-
using Microsoft.VisualStudio;
212+
using Microsoft.Win32;
213213
using static System.Tuple;
214214
using MyList = System.Collections.Generic.List<int>;
215215

0 commit comments

Comments
 (0)