mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 03:39:35 -10:00
* Expose some Thread members - Implemented Thread type in CoreFX, so with this, Thread will no longer be type-forwarded to the runtime. It instead forwards selectively to the runtime through a RuntimeThread instance for functionality is currently strongly tied with the runtime. Some of this functionality may further be moved to CoreFX later. - S.Threading.Thread compiles against S.Private.CoreLib of the runtime for access to RuntimeThread, and due to type conflicts between CoreLib and CoreFX assemblies, uses project references to the CoreFX implementation projects and aliases where necessary to reference the intended public type Related to dotnet/corefx#11632, dotnet/corefx#11638 Commit migrated from https://github.com/dotnet/corefx/commit/5cfbd066343338c696b4a5345c7bd188c87b0096
23 lines
634 B
C#
23 lines
634 B
C#
// Licensed to the .NET Foundation under one or more agreements.
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using Xunit;
|
|
|
|
namespace System.Threading.Threads.Tests
|
|
{
|
|
public static class ThreadExceptionEventArgsTests
|
|
{
|
|
[Fact]
|
|
public static void ConstructorTest()
|
|
{
|
|
var e = new ThreadExceptionEventArgs(null);
|
|
Assert.Null(e.Exception);
|
|
|
|
var ex = new Exception();
|
|
e = new ThreadExceptionEventArgs(ex);
|
|
Assert.Same(ex, e.Exception);
|
|
}
|
|
}
|
|
}
|