Skip to content

Commit ea8af27

Browse files
Update test/ByteBard.AsyncAPI.Tests/Validation/ValidationRuleTests.cs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Alex Wichmann <VisualBean@users.noreply.github.com>
1 parent 5034d4a commit ea8af27

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/ByteBard.AsyncAPI.Tests/Validation/ValidationRuleTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ public void V3_DocumentWithNoChannels_ShouldPass()
7777
[Test]
7878
public void VersionAwareRuleSet_V2Rule_DoesNotRunOnV3Document()
7979
{
80-
// arrange
81-
var document = new AsyncApiDocument { Asyncapi = "3.0.0", Info = new AsyncApiInfo { Title = "Test", Version = "1.0.0" } };
80+
public void VersionAwareRuleSet_V2Rule_DoesNotRunOnV3Document()
81+
{
82+
// arrange
83+
var ruleSet = ValidationRuleSet.GetDefaultRuleSet();
8284
var ruleSet = ValidationRuleSet.GetDefaultRuleSet();
8385

8486
// act

0 commit comments

Comments
 (0)