From d95a260591bc05d2eff242627fe40bf35bf6b313 Mon Sep 17 00:00:00 2001 From: Logan Bussell Date: Thu, 9 Jan 2025 17:38:39 -0500 Subject: [PATCH] Fix incorrect snippet for VerifyDirectory with optional info (#1384) --- docs/mdsource/verify-directory.source.md | 2 +- docs/verify-directory.md | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/mdsource/verify-directory.source.md b/docs/mdsource/verify-directory.source.md index 2aafc0982e..38b15c5e5c 100644 --- a/docs/mdsource/verify-directory.source.md +++ b/docs/mdsource/verify-directory.source.md @@ -14,7 +14,7 @@ snippet: VerifyDirectoryFilterXunitV3 An optional `info` parameter can be supplied to add more context to the test. The instance passed will be json serialized. -snippet: VerifyZipWithStructureXunitV3 +snippet: VerifyDirectoryWithInfoXunitV3 ## FileScrubber diff --git a/docs/verify-directory.md b/docs/verify-directory.md index 360bac6515..b150d5cfb0 100644 --- a/docs/verify-directory.md +++ b/docs/verify-directory.md @@ -44,14 +44,16 @@ public Task WithDirectoryFiltered() => An optional `info` parameter can be supplied to add more context to the test. The instance passed will be json serialized. - - + + ```cs [Fact] -public Task WithZipAndStructure() => - VerifyZip(zipPath, includeStructure: true); +public Task VerifyDirectoryWithInfo() => + VerifyDirectory( + directoryToVerify, + info: "the info"); ``` -snippet source | anchor +snippet source | anchor