chore: Add DoesNotReturnIf(false) attr to unit test Assert condition
This commit is contained in:
1 parent
0d33b19a39
commit
af248ddd69
1 file changed
+1
-1
@@ -196,7 +196,7 @@ namespace mbts.utils {
|
||||
}
|
||||
|
||||
public static class InvalidOperation {
|
||||
public static void That(bool condition, string message) {
|
||||
public static void That([DoesNotReturnIf(false)]bool condition, string message) {
|
||||
if (!condition)
|
||||
throw new InvalidOperationException(message);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user