-
Notifications
You must be signed in to change notification settings - Fork 52
BED-7491 #273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v4
Are you sure you want to change the base?
BED-7491 #273
Changes from all commits
a3d2abd
e223096
a2c3f0d
53d8222
f90a0c1
a705a68
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ | |
| <DebugType>full</DebugType> | ||
| </PropertyGroup> | ||
| <ItemGroup> | ||
| <PackageReference Include="AntiXSS" Version="4.3.0" /> | ||
| <PackageReference Include="AntiXSS" Version="4.3.0" PrivateAssets="All"/> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Marked as private to avoid transitive nuget restore in test projects.
|
||
| <PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" /> | ||
| <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" /> | ||
| </ItemGroup> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ | |
| using System.Diagnostics.CodeAnalysis; | ||
| using System.DirectoryServices; | ||
| using System.Linq; | ||
| using System.Runtime.Versioning; | ||
| using System.Security.AccessControl; | ||
| using System.Threading; | ||
| using System.Threading.Tasks; | ||
|
|
@@ -60,6 +61,7 @@ public void ACLProcessor_IsACLProtected_NullNTSD_ReturnsFalse() { | |
| Assert.False(result); | ||
| } | ||
|
|
||
| [SupportedOSPlatform("windows")] | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. resolves |
||
| [WindowsOnlyFact] | ||
| public async Task ACLProcessor_TestKnownDataAddMember() { | ||
| var mockLdapUtils = new MockLdapUtils(); | ||
|
|
@@ -1421,6 +1423,7 @@ public void Test_ACLProcessor_IsACLProtected_NotProtected() { | |
| Assert.False(result); | ||
| } | ||
|
|
||
| [SupportedOSPlatform("windows")] | ||
| [WindowsOnlyFact] | ||
| public void ACLProcessor_CalculateImplicitACLHash_ValidInput_ReturnsCorrectHash() | ||
| { | ||
|
|
@@ -1439,6 +1442,7 @@ public void ACLProcessor_CalculateImplicitACLHash_ValidInput_ReturnsCorrectHash( | |
| Assert.Equal(expectedHash, result); | ||
| } | ||
|
|
||
| [SupportedOSPlatform("windows")] | ||
| [WindowsOnlyFact] | ||
| public void ACLProcessor_CalculateImplicitACLHash_DifferentInputs_ProducesUniqueHashes() | ||
| { | ||
|
|
@@ -1458,6 +1462,7 @@ public void ACLProcessor_CalculateImplicitACLHash_DifferentInputs_ProducesUnique | |
| Assert.NotEqual(protectedResult, adminsdResult); | ||
| } | ||
|
|
||
| [SupportedOSPlatform("windows")] | ||
| [WindowsOnlyFact] | ||
| public void ACLProcessor_NullAdminSDHolderHash_Returns_Null_Bool() | ||
| { | ||
|
|
@@ -1476,6 +1481,7 @@ public void ACLProcessor_NullAdminSDHolderHash_Returns_Null_Bool() | |
| } | ||
|
|
||
|
|
||
| [SupportedOSPlatform("windows")] | ||
| [WindowsOnlyFact] | ||
| public void ACLProcessor_AdminSDHolderHash_Returns_Match() | ||
| { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,8 @@ | |
| <CollectCoverage>true</CollectCoverage> | ||
| <CoverletOutput>..\..\docfx\coverage\</CoverletOutput> | ||
| <CoverletOutputFormat>OpenCover</CoverletOutputFormat> | ||
| <!-- Suppress cross-targeting warning when referencing net472 SharpHound projects in net8.0 tests --> | ||
| <NoWarn>$(NoWarn);NU1702</NoWarn> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| </PropertyGroup> | ||
|
|
||
| <!-- Project references --> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| using System.Reflection; | ||
| using System.Runtime.Serialization; | ||
| using System.Runtime.CompilerServices; | ||
|
|
||
| namespace CommonLibTest.Facades | ||
| { | ||
|
|
@@ -9,8 +9,8 @@ public class FacadeHelpers | |
| private const BindingFlags publicInstance = BindingFlags.Public | BindingFlags.Instance; | ||
|
|
||
| internal static T GetUninitializedObject<T>() | ||
| { | ||
| return (T) FormatterServices.GetUninitializedObject(typeof(T)); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FormatterServices has been deprecated.
|
||
| { | ||
| return (T)RuntimeHelpers.GetUninitializedObject(typeof(T)); | ||
| } | ||
|
|
||
| internal static void SetField<T1, T2>(T1 obj, string propertyName, T2 propertyValue) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.