diff --git a/docs/anonymous-types.md b/docs/anonymous-types.md
index 2dbc5a7bc8..c5d549d280 100644
--- a/docs/anonymous-types.md
+++ b/docs/anonymous-types.md
@@ -37,7 +37,7 @@ public Task Anon()
});
}
```
-snippet source | anchor
+snippet source | anchor
@@ -68,7 +68,7 @@ public async Task Anon()
});
}
```
-snippet source | anchor
+snippet source | anchor
@@ -99,7 +99,7 @@ public async Task Anon()
});
}
```
-snippet source | anchor
+snippet source | anchor
diff --git a/docs/build-server.md b/docs/build-server.md
index fbf88a6d7f..22e38bb265 100644
--- a/docs/build-server.md
+++ b/docs/build-server.md
@@ -63,5 +63,5 @@ if (BuildServerDetector.Detected)
});
}
```
-snippet source | anchor
+snippet source | anchor
diff --git a/docs/clipboard.md b/docs/clipboard.md
index 363cdd1f7b..a79ea157be 100644
--- a/docs/clipboard.md
+++ b/docs/clipboard.md
@@ -64,7 +64,7 @@ The clipboard behavior can be disable using the following:
```cs
VerifierSettings.DisableClipboard();
```
-snippet source | anchor
+snippet source | anchor
diff --git a/docs/compared-to-assertion.md b/docs/compared-to-assertion.md
index be33e1d55a..3057f9542b 100644
--- a/docs/compared-to-assertion.md
+++ b/docs/compared-to-assertion.md
@@ -83,7 +83,7 @@ public void TraditionalTest()
Assert.Equal("USA", person.Address.Country);
}
```
-snippet source | anchor
+snippet source | anchor
@@ -99,7 +99,7 @@ public Task SnapshotTest()
return Verifier.Verify(person);
}
```
-snippet source | anchor
+snippet source | anchor
Produces a snapshot file `SnapshotTest.verified.txt`:
diff --git a/docs/comparer.md b/docs/comparer.md
index cc231dc4f4..c4c2a27323 100644
--- a/docs/comparer.md
+++ b/docs/comparer.md
@@ -34,7 +34,7 @@ static Task CompareImages(
return Task.FromResult(result);
}
```
-snippet source | anchor
+snippet source | anchor
The returned `CompareResult.NotEqual` takes an optional message that will be rendered in the resulting text displayed to the user on test failure.
@@ -64,7 +64,7 @@ public Task InstanceComparerFluent()
.UseExtension("png");
}
```
-snippet source | anchor
+snippet source | anchor
@@ -78,7 +78,7 @@ VerifierSettings.RegisterStreamComparer(
compare: CompareImages);
await Verifier.VerifyFile("TheImage.png");
```
-snippet source | anchor
+snippet source | anchor
diff --git a/docs/converter.md b/docs/converter.md
index 217ae4c8fd..31b4f35640 100644
--- a/docs/converter.md
+++ b/docs/converter.md
@@ -76,7 +76,7 @@ VerifierSettings.RegisterFileConverter(
targets);
});
```
-snippet source | anchor
+snippet source | anchor
@@ -85,7 +85,7 @@ VerifierSettings.RegisterFileConverter(
using var stream = File.OpenRead("sample.tif");
await Verifier.Verify(Image.FromStream(stream));
```
-snippet source | anchor
+snippet source | anchor
Note that this sample also uses the optional `canConvert` to ensure that only `Image`s that are tiffs are converted.
@@ -95,7 +95,7 @@ Note that this sample also uses the optional `canConvert` to ensure that only `I
```cs
canConvert: (target, extension, context) => Equals(target.RawFormat, ImageFormat.Tiff),
```
-snippet source | anchor
+snippet source | anchor
@@ -132,7 +132,7 @@ VerifierSettings.RegisterFileConverter(
targets);
});
```
-snippet source | anchor
+snippet source | anchor
@@ -140,7 +140,7 @@ VerifierSettings.RegisterFileConverter(
```cs
await Verifier.VerifyFile("sample.tif");
```
-snippet source | anchor
+snippet source | anchor
@@ -161,7 +161,7 @@ return new(
return Task.CompletedTask;
});
```
-snippet source | anchor
+snippet source | anchor
diff --git a/docs/named-tuples.md b/docs/named-tuples.md
index c5192de1a4..cb478fe1af 100644
--- a/docs/named-tuples.md
+++ b/docs/named-tuples.md
@@ -21,7 +21,7 @@ static (bool Member1, string Member2, string Member3) MethodWithNamedTuple()
return (true, "A", "B");
}
```
-snippet source | anchor
+snippet source | anchor
Can be verified:
@@ -31,7 +31,7 @@ Can be verified:
```cs
await Verifier.VerifyTuple(() => MethodWithNamedTuple());
```
-snippet source | anchor
+snippet source | anchor
Resulting in:
diff --git a/docs/naming.md b/docs/naming.md
index b3efde9ccb..022fb31af1 100644
--- a/docs/naming.md
+++ b/docs/naming.md
@@ -27,7 +27,7 @@ var settings = new VerifySettings();
settings.UseDirectory("CustomDirectory");
await Verifier.Verify("value", settings);
```
-snippet source | anchor
+snippet source | anchor
@@ -36,7 +36,7 @@ await Verifier.Verify("value", settings);
await Verifier.Verify("value")
.UseDirectory("CustomDirectory");
```
-snippet source | anchor
+snippet source | anchor
Will result in `CustomDirectory/TypeName.MethodName.verified.txt`.
@@ -55,7 +55,7 @@ var settings = new VerifySettings();
settings.UseTypeName("CustomTypeName");
await Verifier.Verify("value", settings);
```
-snippet source | anchor
+snippet source | anchor
@@ -64,7 +64,7 @@ await Verifier.Verify("value", settings);
await Verifier.Verify("value")
.UseTypeName("CustomTypeName");
```
-snippet source | anchor
+snippet source | anchor
Will result in `CustomTypeName.MethodName.verified.txt`.
@@ -81,7 +81,7 @@ var settings = new VerifySettings();
settings.UseMethodName("CustomMethodName");
await Verifier.Verify("value", settings);
```
-snippet source | anchor
+snippet source | anchor
Will result in `TestClass.CustomMethodName.verified.txt`.
@@ -92,7 +92,7 @@ Will result in `TestClass.CustomMethodName.verified.txt`.
await Verifier.Verify("value")
.UseMethodName("CustomMethodNameFluent");
```
-snippet source | anchor
+snippet source | anchor
Will result in `TestClass.CustomMethodNameFluent.verified.txt`.
@@ -116,7 +116,7 @@ public async Task MultipleCalls()
.UseMethodName("MultipleCalls_2"));
}
```
-snippet source | anchor
+snippet source | anchor
@@ -131,7 +131,7 @@ var settings = new VerifySettings();
settings.UseFileName("CustomFileName");
await Verifier.Verify("value", settings);
```
-snippet source | anchor
+snippet source | anchor
Will result in `CustomFileName.verified.txt`.
@@ -142,7 +142,7 @@ Will result in `CustomFileName.verified.txt`.
await Verifier.Verify("value")
.UseFileName("CustomFileNameFluent");
```
-snippet source | anchor
+snippet source | anchor
Will result in `UseFileNameFluent.verified.txt`.
@@ -241,7 +241,7 @@ public class UniqueForSample
}
}
```
-snippet source | anchor
+snippet source | anchor
@@ -329,7 +329,7 @@ public class UniqueForSample
}
}
```
-snippet source | anchor
+snippet source | anchor
@@ -435,7 +435,7 @@ public class UniqueForSample :
}
}
```
-snippet source | anchor
+snippet source | anchor
@@ -527,7 +527,7 @@ public class ExtensionSample
}
}
```
-snippet source | anchor
+snippet source | anchor
Result in two files:
@@ -567,7 +567,7 @@ To access the current Namer `Runtime` or `RuntimeAndVersion` strings use:
Debug.WriteLine(Namer.Runtime);
Debug.WriteLine(Namer.RuntimeAndVersion);
```
-snippet source | anchor
+snippet source | anchor
@@ -594,7 +594,7 @@ VerifierSettings.DerivePathInfo(
methodName: method.Name);
});
```
-snippet source | anchor
+snippet source | anchor
Return null to any of the values to use the standard behavior. The returned path can be relative to the directory sourceFile exists in.
diff --git a/docs/parameterised.md b/docs/parameterised.md
index 1823e77bc6..beff9bb0dc 100644
--- a/docs/parameterised.md
+++ b/docs/parameterised.md
@@ -52,7 +52,7 @@ public Task InlineDataUsageFluent(string arg)
.UseParameters(arg);
}
```
-snippet source | anchor
+snippet source | anchor
@@ -84,7 +84,7 @@ public static IEnumerable