Skip to content

Commit

Permalink
Update readme.source.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Jun 17, 2022
1 parent 74ba563 commit 6795ad3
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion readme.source.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,26 @@ Support for [MSTest](https://github.com/Microsoft/testfx-docs)

snippet: SampleTestMSTest


### Initial Verification

No existing `.verified.` file.

```mermaid
graph LR
run(Run test and<br/>create Received file)
failTest(Fail Test<br/>and show Diff)
closeDiff(Close Diff)
run-->failTest
shouldAccept{Accept ?}
failTest-->shouldAccept
accept(Move Received<br/>to Verified)
shouldAccept-- Yes -->accept
discard(Discard<br/>Received)
shouldAccept-- No -->discard
accept-->closeDiff
discard-->closeDiff
```

When the test is initially run will fail. If a [Diff Tool](https://github.com/VerifyTests/DiffEngine) is detected it will display the diff.

![InitialDiff](/docs/InitialDiff.png)
Expand All @@ -111,6 +128,29 @@ snippet: Verify.Xunit.Tests/Snippets/Sample.Test.verified.txt

### Subsequent Verification

Existing `.verified.` file.

```mermaid
graph LR
run(Run test and<br/>create Received file)
closeDiff(Close Diff)
failTest(Fail Test<br/>and show Diff)
run-->isSame
shouldAccept{Accept ?}
failTest-->shouldAccept
accept(Move Received<br/>to Verified)
shouldAccept-- Yes -->accept
discard(Discard<br/>Received)
shouldAccept-- No -->discard
isSame{Compare<br/>Verified +<br/>Received}
passTest(Pass Test and<br/>discard Received)
isSame-- Same --> passTest
isSame-- Different --> failTest
accept-->closeDiff
discard-->closeDiff
```

If the implementation of `ClassBeingTested` changes:

snippet: ClassBeingTestedChanged
Expand Down

0 comments on commit 6795ad3

Please sign in to comment.