Skip to content

Commit 966b459

Browse files
committed
Use Assert.Fail() to fail the test
1 parent e666d3d commit 966b459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Microsoft.OpenApi.Readers.Tests/V2Tests/OpenApiDocumentTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation. All rights reserved.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

44
using System.Collections.Generic;
@@ -419,7 +419,7 @@ public void ShouldAllowComponentsThatJustContainAReference()
419419
if (schema2.UnresolvedReference && schema1.Reference.Id == schema2.Reference.Id)
420420
{
421421
// detected a cycle - this code gets triggered
422-
Assert.True(false, "A cycle should not be detected");
422+
Assert.Fail("A cycle should not be detected");
423423
}
424424
}
425425
}

0 commit comments

Comments
 (0)