Skip to content

Commit 1918974

Browse files
committed
Update changes and bring develop in. My develop is at the same level as your develop, so this should be OK.
2 parents 4de8230 + 1190a00 commit 1918974

File tree

13 files changed

+1078
-32
lines changed

13 files changed

+1078
-32
lines changed

VSDiagnostics/VSDiagnostics/VSDiagnostics.Test/Tests/General/LoopedRandomInstantiationTests.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,5 +194,23 @@ void Method()
194194

195195
VerifyDiagnostic(original);
196196
}
197+
198+
[TestMethod]
199+
public void LoopedRandomInstantiation_TypeIsObject_DoesNotCrashAnalyzerBecauseContainingNamespaceIsNull()
200+
{
201+
var original = @"
202+
namespace ConsoleApplication1
203+
{
204+
class MyClass
205+
{
206+
void Method()
207+
{
208+
object[] o = {};
209+
}
210+
}
211+
}";
212+
213+
VerifyDiagnostic(original);
214+
}
197215
}
198216
}

0 commit comments

Comments
 (0)