Skip to content

Commit

Permalink
Re org (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Apr 11, 2020
1 parent fe37c65 commit a765e43
Show file tree
Hide file tree
Showing 67 changed files with 858 additions and 879 deletions.
2 changes: 1 addition & 1 deletion docs/diff-tool.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ This value can be changed:
```cs
DiffRunner.MaxInstancesToLaunch(10);
```
<sup><a href='/src/Verify.Tests/Tests.cs#L146-L150' title='File snippet `maxinstancestolaunch` was extracted from'>snippet source</a> | <a href='#snippet-maxinstancestolaunch' title='Navigate to start of snippet `maxinstancestolaunch`'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Tests.cs#L84-L88' title='File snippet `maxinstancestolaunch` was extracted from'>snippet source</a> | <a href='#snippet-maxinstancestolaunch' title='Navigate to start of snippet `maxinstancestolaunch`'>anchor</a></sup>
<!-- endsnippet -->


Expand Down
2 changes: 1 addition & 1 deletion docs/mdsource/named-tuples.source.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ snippet: VerifyTuple

Resulting in:

snippet: Tests.NamedTuple.verified.txt
snippet: SerializationTests.NamedTuple.verified.txt
25 changes: 12 additions & 13 deletions docs/mdsource/serializer-settings.source.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ snippet: guid

Results in the following:

snippet: Tests.ShouldReUseGuid.verified.txt
snippet: SerializationTests.ShouldReUseGuid.verified.txt

To disable this behavior globally use:

Expand All @@ -58,7 +58,7 @@ snippet: Date

Results in the following:

snippet: Tests.ShouldReUseDatetime.verified.txt
snippet: SerializationTests.ShouldReUseDatetime.verified.txt

To disable this behavior globally use:

Expand Down Expand Up @@ -105,7 +105,7 @@ snippet: AddIgnoreType

Result:

snippet: Tests.IgnoreType.verified.txt
snippet: SerializationTests.IgnoreType.verified.txt


## Ignoring a instance
Expand All @@ -116,7 +116,7 @@ snippet: AddIgnoreInstance

Result:

snippet: Tests.AddIgnoreInstance.verified.txt
snippet: SerializationTests.AddIgnoreInstance.verified.txt


## Obsolete members ignored
Expand All @@ -127,7 +127,7 @@ snippet: WithObsoleteProp

Result:

snippet: Tests.WithObsoleteProp.verified.txt
snippet: SerializationTests.WithObsoleteProp.verified.txt


### Including Obsolete members
Expand All @@ -138,8 +138,7 @@ snippet: WithObsoletePropIncluded

Result:

snippet: Tests.WithObsoletePropIncluded.verified.txt

snippet: SerializationTests.WithObsoletePropIncluded.verified.txt


## Ignore member by expressions
Expand All @@ -150,7 +149,7 @@ snippet: IgnoreMemberByExpression

Result:

snippet: Tests.IgnoreMemberByExpression.verified.txt
snippet: SerializationTests.IgnoreMemberByExpression.verified.txt


## Ignore member by name
Expand All @@ -161,7 +160,7 @@ snippet: IgnoreMemberByName

Result:

snippet: Tests.IgnoreMemberByName.verified.txt
snippet: SerializationTests.IgnoreMemberByName.verified.txt


## Members that throw
Expand All @@ -178,15 +177,15 @@ snippet: IgnoreMembersThatThrow

Result:

snippet: Tests.CustomExceptionProp.verified.txt
snippet: SerializationTests.CustomExceptionProp.verified.txt

Ignore by exception type and expression:

snippet: IgnoreMembersThatThrowExpression

Result:

snippet: Tests.ExceptionMessageProp.verified.txt
snippet: SerializationTests.ExceptionMessageProp.verified.txt


## DisableNewLineEscaping
Expand All @@ -195,10 +194,10 @@ By default newlines in json are escaped with `\r\n`:

snippet: NewLineEscapedInProperty

snippet: Tests.NewLineEscapedInProperty.verified.txt
snippet: SerializationTests.NewLineEscapedInProperty.verified.txt

This can be disabled:

snippet: DisableNewLineEscaping

snippet: Tests.NewLineNotEscapedInProperty.verified.txt
snippet: SerializationTests.NewLineNotEscapedInProperty.verified.txt
10 changes: 5 additions & 5 deletions docs/named-tuples.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static (bool Member1, string Member2, string Member3) MethodWithNamedTuple()
return (true, "A", "B");
}
```
<sup><a href='/src/Verify.Tests/Tests.cs#L197-L204' title='File snippet `methodwithnamedtuple` was extracted from'>snippet source</a> | <a href='#snippet-methodwithnamedtuple' title='Navigate to start of snippet `methodwithnamedtuple`'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L286-L293' title='File snippet `methodwithnamedtuple` was extracted from'>snippet source</a> | <a href='#snippet-methodwithnamedtuple' title='Navigate to start of snippet `methodwithnamedtuple`'>anchor</a></sup>
<!-- endsnippet -->

Can be verified:
Expand All @@ -31,19 +31,19 @@ Can be verified:
```cs
await Verify(() => MethodWithNamedTuple());
```
<sup><a href='/src/Verify.Tests/Tests.cs#L190-L194' title='File snippet `verifytuple` was extracted from'>snippet source</a> | <a href='#snippet-verifytuple' title='Navigate to start of snippet `verifytuple`'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L279-L283' title='File snippet `verifytuple` was extracted from'>snippet source</a> | <a href='#snippet-verifytuple' title='Navigate to start of snippet `verifytuple`'>anchor</a></sup>
<!-- endsnippet -->

Resulting in:

<!-- snippet: Tests.NamedTuple.verified.txt -->
<a id='snippet-Tests.NamedTuple.verified.txt'/></a>
<!-- snippet: SerializationTests.NamedTuple.verified.txt -->
<a id='snippet-SerializationTests.NamedTuple.verified.txt'/></a>
```txt
{
Member1: true,
Member2: 'A',
Member3: 'B'
}
```
<sup><a href='/src/Verify.Tests/Tests.NamedTuple.verified.txt#L1-L5' title='File snippet `Tests.NamedTuple.verified.txt` was extracted from'>snippet source</a> | <a href='#snippet-Tests.NamedTuple.verified.txt' title='Navigate to start of snippet `Tests.NamedTuple.verified.txt`'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.NamedTuple.verified.txt#L1-L5' title='File snippet `SerializationTests.NamedTuple.verified.txt` was extracted from'>snippet source</a> | <a href='#snippet-SerializationTests.NamedTuple.verified.txt' title='Navigate to start of snippet `SerializationTests.NamedTuple.verified.txt`'>anchor</a></sup>
<!-- endsnippet -->
10 changes: 5 additions & 5 deletions docs/scrubbers.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ For example remove lines containing `text`:
```cs
verifySettings.ScrubLines(line => line.Contains("text"));
```
<sup><a href='/src/Verify.Tests/Snippets/ScrubbersSnippets.cs#L10-L14' title='File snippet `scrublines` was extracted from'>snippet source</a> | <a href='#snippet-scrublines' title='Navigate to start of snippet `scrublines`'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L191-L195' title='File snippet `scrublines` was extracted from'>snippet source</a> | <a href='#snippet-scrublines' title='Navigate to start of snippet `scrublines`'>anchor</a></sup>
<!-- endsnippet -->


Expand All @@ -45,7 +45,7 @@ For example remove lines containing `text1` or `text2`
```cs
verifySettings.ScrubLinesContaining("text1", "text2");
```
<sup><a href='/src/Verify.Tests/Snippets/ScrubbersSnippets.cs#L16-L20' title='File snippet `scrublinescontaining` was extracted from'>snippet source</a> | <a href='#snippet-scrublinescontaining' title='Navigate to start of snippet `scrublinescontaining`'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L197-L201' title='File snippet `scrublinescontaining` was extracted from'>snippet source</a> | <a href='#snippet-scrublinescontaining' title='Navigate to start of snippet `scrublinescontaining`'>anchor</a></sup>
<!-- endsnippet -->

Case insensitive by default (StringComparison.OrdinalIgnoreCase).
Expand All @@ -57,7 +57,7 @@ Case insensitive by default (StringComparison.OrdinalIgnoreCase).
```cs
verifySettings.ScrubLinesContaining(StringComparison.Ordinal, "text1", "text2");
```
<sup><a href='/src/Verify.Tests/Snippets/ScrubbersSnippets.cs#L22-L26' title='File snippet `scrublinescontainingordinal` was extracted from'>snippet source</a> | <a href='#snippet-scrublinescontainingordinal' title='Navigate to start of snippet `scrublinescontainingordinal`'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L203-L207' title='File snippet `scrublinescontainingordinal` was extracted from'>snippet source</a> | <a href='#snippet-scrublinescontainingordinal' title='Navigate to start of snippet `scrublinescontainingordinal`'>anchor</a></sup>
<!-- endsnippet -->


Expand All @@ -72,7 +72,7 @@ For example converts lines to upper case:
```cs
verifySettings.ScrubLinesWithReplace(line => line.ToUpper());
```
<sup><a href='/src/Verify.Tests/Snippets/ScrubbersSnippets.cs#L28-L32' title='File snippet `scrublineswithreplace` was extracted from'>snippet source</a> | <a href='#snippet-scrublineswithreplace' title='Navigate to start of snippet `scrublineswithreplace`'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L209-L213' title='File snippet `scrublineswithreplace` was extracted from'>snippet source</a> | <a href='#snippet-scrublineswithreplace' title='Navigate to start of snippet `scrublineswithreplace`'>anchor</a></sup>
<!-- endsnippet -->


Expand All @@ -85,7 +85,7 @@ Replaces `Environment.MachineName` with `TheMachineName`.
```cs
verifySettings.ScrubMachineName();
```
<sup><a href='/src/Verify.Tests/Snippets/ScrubbersSnippets.cs#L34-L38' title='File snippet `scrubmachinename` was extracted from'>snippet source</a> | <a href='#snippet-scrubmachinename' title='Navigate to start of snippet `scrubmachinename`'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L215-L219' title='File snippet `scrubmachinename` was extracted from'>snippet source</a> | <a href='#snippet-scrubmachinename' title='Navigate to start of snippet `scrubmachinename`'>anchor</a></sup>
<!-- endsnippet -->


Expand Down
Loading

0 comments on commit a765e43

Please sign in to comment.