Skip to content

Commit

Permalink
Merge pull request #762 from microsoftgraph/dependabot/nuget/xunit-2.6.2
Browse files Browse the repository at this point in the history
Bump xunit from 2.6.1 to 2.6.2
  • Loading branch information
baywet authored Nov 21, 2023
2 parents 36c3f38 + 50fe5cb commit 1c7fa82
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/Microsoft.Graph/Microsoft.Graph.Beta.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
<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)'=='Debug|netstandard2.0|AnyCPU'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="Moq" Version="4.20.69" />
<PackageReference Include="xunit" Version="2.6.1" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,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 1c7fa82

Please sign in to comment.