From 52af9dc9682c6017f089bf982a408fe7803845bd Mon Sep 17 00:00:00 2001 From: "Andrew Omondi (from Dev Box)" Date: Mon, 20 Nov 2023 15:08:17 +0300 Subject: [PATCH] fix compilier warnings --- src/Microsoft.Graph/Microsoft.Graph.csproj | 2 ++ .../Requests/Generated/ActionRequestTests.cs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.Graph/Microsoft.Graph.csproj b/src/Microsoft.Graph/Microsoft.Graph.csproj index 2a74c99433f..2964c22e352 100644 --- a/src/Microsoft.Graph/Microsoft.Graph.csproj +++ b/src/Microsoft.Graph/Microsoft.Graph.csproj @@ -35,6 +35,8 @@ https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/CHANGELOG.md true README.md $(NoWarn);NU5048;NETSDK1138 + + true diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Generated/ActionRequestTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Generated/ActionRequestTests.cs index 025981070f1..7932ceda8f9 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Generated/ActionRequestTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Generated/ActionRequestTests.cs @@ -102,13 +102,13 @@ public void NoParameters() /// Tests that an exception is thrown when the first of required parameters passed to an action request is null (assignLicence). /// [Fact] - public void MultipleRequiredParameters_FirstParameterNull() + public async Task MultipleRequiredParameters_FirstParameterNull() { var mockRequestAdapter = new Mock(); var graphServiceClient = new GraphServiceClient(mockRequestAdapter.Object); var removeLicenses = new List { new Guid() }; - Assert.ThrowsAsync(() => graphServiceClient.Me.AssignLicense.PostAsync(null)); + await Assert.ThrowsAsync(() => graphServiceClient.Me.AssignLicense.PostAsync(null)); } ///