// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingRoslyn.Test.Utilities;
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
...
...
@@ -27,12 +29,26 @@ public class EndToEndTests : EmitMetadataTestBase
/// <param name="action"></param>
privatestaticvoidRunInThread(Actionaction)
{
Exceptionexception=null;
varthread=newSystem.Threading.Thread(()=>
{
action();
try
{
action();
}
catch(Exceptionex)
{
exception=ex;
}
},0);
thread.Start();
thread.Join();
if(!(exceptionisnull))
{
throwexception;
}
}
// This test is a canary attempting to make sure that we don't regress the # of fluent calls that