-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Autofixture 4.17 -> 4.18.1 - coverlet 3.1.2 -> 6.0.0 - FluentAssertions 6.7.0 -> 6.12.0 - MSN.Test.Sdk 17.2.0 -> 17.9.0 - NSubstitue 5 -> 5.1 - FlagD Provider 0.1.5 -> 0.1.8 - Xunit 2.4.1 -> 2.6.6 Signed-off-by: Benjamin Evenson <[email protected]>
- Loading branch information
Showing
5 changed files
with
41 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Collections.Immutable; | ||
using OpenFeature.Model; | ||
using System.Diagnostics.CodeAnalysis; | ||
using Xunit; | ||
|
||
namespace OpenFeature.Tests | ||
{ | ||
[SuppressMessage("Reliability", "CA2007:Consider calling ConfigureAwait on the awaited task")] | ||
public class TestUtilsTest | ||
{ | ||
[Fact] | ||
public async void Should_Fail_If_Assertion_Fails() | ||
{ | ||
await Assert.ThrowsAnyAsync<Exception>(() => Utils.AssertUntilAsync(_ => Assert.True(1.Equals(2)), 100, 10)).ConfigureAwait(false); | ||
await Assert.ThrowsAnyAsync<Exception>(() => Utils.AssertUntilAsync(_ => Assert.True(1.Equals(2)), 100, 10)); | ||
} | ||
|
||
[Fact] | ||
public async void Should_Pass_If_Assertion_Fails() | ||
{ | ||
await Utils.AssertUntilAsync(_ => Assert.True(1.Equals(1))).ConfigureAwait(false); | ||
await Utils.AssertUntilAsync(_ => Assert.True(1.Equals(1))); | ||
} | ||
} | ||
} |
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