Skip to content

Commit

Permalink
fix compilier warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Omondi (from Dev Box) committed Nov 20, 2023
1 parent 5305bc7 commit 52af9dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Microsoft.Graph/Microsoft.Graph.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/CHANGELOG.md
<Deterministic>true</Deterministic>
<PackageReadmeFile>README.md</PackageReadmeFile>
<NoWarn>$(NoWarn);NU5048;NETSDK1138</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFrameworkVersion)' == 'net5.0'">
<IsTrimmable>true</IsTrimmable>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.0|AnyCPU'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
/// </summary>
[Fact]
public void MultipleRequiredParameters_FirstParameterNull()
public async Task MultipleRequiredParameters_FirstParameterNull()
{
var mockRequestAdapter = new Mock<IRequestAdapter>();
var graphServiceClient = new GraphServiceClient(mockRequestAdapter.Object);
var removeLicenses = new List<Guid> { new Guid() };

Assert.ThrowsAsync<ArgumentNullException>(() => graphServiceClient.Me.AssignLicense.PostAsync(null));
await Assert.ThrowsAsync<ArgumentNullException>(() => graphServiceClient.Me.AssignLicense.PostAsync(null));
}

/// <summary>
Expand Down

0 comments on commit 52af9dc

Please sign in to comment.