mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-22 19:10:41 -10:00
Adding these gives us a place to put tests for the associated libraries, and also ensures that the libraries show up in code coverage. Each library is empty with the exception of a single test that's necessary for code coverage to pick it up. includes skeleton projects for: - Microsoft.CSharp - Microsoft.VisualBasic - Microsoft.Win32.Registry.AccessControl - System.Data.Common - System.IO.FileSystem.AccessControl - System.Reflection.Context - System.Security.Claims - System.Threading.AccessControl Commit migrated from https://github.com/dotnet/corefx/commit/3b1efe2956682a5a240f9354787e05aab1b3edfc
18 lines
511 B
C#
18 lines
511 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.IO
|
|
{
|
|
public class FileSystemAclExtensionsTests
|
|
{
|
|
[Fact]
|
|
public void GetAccessControl_InvalidArguments()
|
|
{
|
|
Assert.Throws<NullReferenceException>(() => FileSystemAclExtensions.GetAccessControl((DirectoryInfo)null));
|
|
}
|
|
}
|
|
}
|