Skip to content

Commit

Permalink
Merge pull request #49 from microsoft/dependabot/nuget/xunit-2.6.2
Browse files Browse the repository at this point in the history
chore(deps): Bump xunit from 2.6.1 to 2.6.2
  • Loading branch information
baywet authored Nov 20, 2023
2 parents 4abf281 + 7718c46 commit fcdecad
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/ApiManifest.Tests/ApiManifest.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.1" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
10 changes: 5 additions & 5 deletions tests/ApiManifest.Tests/Helpers/ParsingHelpersTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,17 @@ public async Task ParseOpenApiAsync()
}

[Fact]
public void ParseOpenApiWithWrongOpenApiUrl()
public async Task ParseOpenApiWithWrongOpenApiUrl()
{
var openApiUri = new Uri("https://contoso.com/NotValid.yaml");
_ = Assert.ThrowsAsync<InvalidOperationException>(async () => await ParsingHelpers.ParseOpenApiAsync(openApiUri, false, CancellationToken.None));
var openApiUri = new Uri("https://1CED4309-EFBF-41A8-9E8F-8BBA0CB3EEE5.com/NotValid.yaml");
await Assert.ThrowsAsync<InvalidOperationException>(async () => await ParsingHelpers.ParseOpenApiAsync(openApiUri, false, CancellationToken.None));
}

[Fact]
public void ParseOpenApiWithOpenApiUrlWithAnInvalidSchema()
public async Task ParseOpenApiWithOpenApiUrlWithAnInvalidSchema()
{
var openApiUri = new Uri("xyx://contoso.com/openapi.yaml");
_ = Assert.ThrowsAsync<ArgumentException>(async () => await ParsingHelpers.ParseOpenApiAsync(openApiUri, false, CancellationToken.None));
await Assert.ThrowsAsync<ArgumentException>(async () => await ParsingHelpers.ParseOpenApiAsync(openApiUri, false, CancellationToken.None));
}
}
}
8 changes: 4 additions & 4 deletions tests/ApiManifest.Tests/OpenAIPluginManifestTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -531,19 +531,19 @@ public async Task GenerateOpenAIPluginManifestFromApiManifestOfAnApiDependencyAs
}

[Fact]
public void GenerateOpenAIPluginManifestFromApiManifestWithWrongApiDependency()
public async Task GenerateOpenAIPluginManifestFromApiManifestWithWrongApiDependency()
{
_ = Assert.ThrowsAsync<ApiManifestException>(
await Assert.ThrowsAsync<ApiManifestException>(
async () => await exampleApiManifest.ToOpenAIPluginManifestAsync("https://avatars.githubusercontent.com/bar", "https://legalinfo.foobar.com", "ContosoApi", "./openapi.yml"));
}

[Fact]
public void GenerateOpenAIPluginManifestFromApiManifestWithEmptyApiDependencies()
public async Task GenerateOpenAIPluginManifestFromApiManifestWithEmptyApiDependencies()
{
var apiManifest = LoadTestApiManifestDocument();
apiManifest.ApiDependencies.Clear();

_ = Assert.ThrowsAsync<ApiManifestException>(
await Assert.ThrowsAsync<ApiManifestException>(
async () => await apiManifest.ToOpenAIPluginManifestAsync("https://avatars.githubusercontent.com/bar", "https://legalinfo.foobar.com", "MicrosoftGraph", "./openapi.yml"));
}

Expand Down

0 comments on commit fcdecad

Please sign in to comment.