-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a unit test to help prevent the benchmarks get broken again in the future.
- Loading branch information
1 parent
c5d8e47
commit cd4f0b9
Showing
6 changed files
with
32 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) Just Eat, 2017. All rights reserved. | ||
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. | ||
|
||
namespace JustEat.HttpClientInterception; | ||
|
||
public static class BenchmarkTests | ||
{ | ||
[Fact] | ||
public static async Task Benchmarks_Do_Not_Throw_An_Exception() | ||
{ | ||
// Arrange | ||
var target = new InterceptionBenchmarks(); | ||
|
||
// Act and Assert | ||
await Should.NotThrowAsync(target.GetBytes); | ||
await Should.NotThrowAsync(target.GetHtml); | ||
await Should.NotThrowAsync(target.GetJsonDocument); | ||
await Should.NotThrowAsync(target.GetJsonObject); | ||
await Should.NotThrowAsync(target.GetJsonObjectSourceGenerator); | ||
await Should.NotThrowAsync(target.GetJsonObjectWithRefit); | ||
await Should.NotThrowAsync(target.GetStream); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters