Skip to content

Commit f75fddb

Browse files
committed
Add TUnit RSCG example and update references
Added a new example for TUnit (RSCG #239), including TUnit.html, a corresponding entry in the list and YAML, and a downloadable source zip. Updated the documentation to use the correct banner image URL and incremented the RSCG count. Also updated the RSCG.xlsx export.
1 parent 43bfdf3 commit f75fddb

File tree

7 files changed

+77
-3
lines changed

7 files changed

+77
-3
lines changed

v2/Generator/MultiGeneratorV2.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ public string[] SourceNoRSCG()
127127

128128
text = text.Replace("(COVERAGE", $"({d.Generator!.Source}/COVERAGE");
129129
text = text.Replace("(TeCLI.", $"({d.Generator!.Source}/TeCLI.");
130-
130+
131+
text = text.Replace("(assets/banner.", $"({d.Generator!.Source}/assets/banner.");
131132
text = text.Replace("(integ-tests/", $"({d.Generator!.Source}/integ-tests/");
132133
text = text.Replace("(./samples", $"({d.Generator!.Source}/samples");
133134
text = text.Replace("(./tests", $"({d.Generator!.Source}/tests");

v2/book/examples/TUnit.html

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
2+
<h1>RSCG nr 239 : TUnit</h1>
3+
4+
<h2>Info</h2>
5+
Nuget : <a href="https://www.nuget.org/packages/TUnit/" target="_blank">https://www.nuget.org/packages/TUnit/</a>
6+
7+
<p>You can find more details at : <a href="https://github.com/thomhurst/TUnit" target="_blank"> https://github.com/thomhurst/TUnit</a></p>
8+
9+
<p>Author :Tom Longhurst</p>
10+
11+
<p>Source: <a href="https://github.com/thomhurst/TUnit" target="_blank">https://github.com/thomhurst/TUnit</a> </p>
12+
13+
<h2>About</h2>
14+
15+
Writing unit tests
16+
17+
<h2>
18+
How to use
19+
</h2>
20+
<h3>
21+
Add reference to the <a href="https://www.nuget.org/packages/TUnit/" target="_blank">TUnit</a> in the csproj
22+
</h3>
23+
<img src="images/TUnit/TestDemo.csproj.png" width="580" height="580" />
24+
25+
<h3>This was for me the <b>starting</b> code</h3>
26+
27+
<br />
28+
I have <b>coded</b> the file FirstTest.cs
29+
<br />
30+
<img src="images/TUnit/csFiles/FirstTest.cs.png" width="580" height="580" />
31+
<hr />
32+
<h3>And here are the <i>generated</i> files</h3>
33+
34+
<br />
35+
The file <i>generated</i> is AssemblyLoader.g.cs
36+
<br />
37+
<img src="images/TUnit/generated/AssemblyLoader.g.cs.png" width="580" height="580" />
38+
39+
<br />
40+
The file <i>generated</i> is DisableReflectionScanner.g.cs
41+
<br />
42+
<img src="images/TUnit/generated/DisableReflectionScanner.g.cs.png" width="580" height="580" />
43+
44+
<br />
45+
The file <i>generated</i> is AotConverters.g.cs
46+
<br />
47+
<img src="images/TUnit/generated/AotConverters.g.cs.png" width="580" height="580" />
48+
49+
<br />
50+
The file <i>generated</i> is TestDemo_FirstTest_Add_WithTwoNumbers_ReturnsSum.g.cs
51+
<br />
52+
<img src="images/TUnit/generated/TestDemo_FirstTest_Add_WithTwoNumbers_ReturnsSum.g.cs.png" width="580" height="580" />
53+
54+
<p>
55+
You can download the code and this page as pdf from
56+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/TUnit'>
57+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/TUnit
58+
</a>
59+
</p>
60+
61+
62+
<p>
63+
You can see the whole list at
64+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'>
65+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG
66+
</a>
67+
</p>
68+

v2/book/list.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</head>
1818
<body>
1919
<h1>
20-
This is the list of 238 RSCG with examples =>
20+
This is the list of 239 RSCG with examples =>
2121
</h1>
2222

2323
<table >
@@ -978,6 +978,10 @@ <h1>
978978
<td>238</td>
979979
<td><a href="examples/TeCLI.html">TeCLI</a></td>
980980
</tr>
981+
<tr>
982+
<td>239</td>
983+
<td><a href="examples/TUnit.html">TUnit</a></td>
984+
</tr>
981985
</table>
982986

983987

v2/book/pandocHTML.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ input-files:
252252
- examples/validly.html
253253
- examples/Program.html
254254
- examples/TeCLI.html
255+
- examples/TUnit.html
255256

256257
# or you may use input-file: with a single value
257258
# defaults:

v2/rscg_examples_site/docs/RSCG-Examples/TUnit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Tom Longhurst
4949
### Original Readme
5050
:::note
5151

52-
![](assets/banner.png)
52+
![](https://github.com/thomhurst/TUnit/assets/banner.png)
5353

5454
# 🚀 The Modern Testing Framework for .NET
5555

-2 Bytes
Binary file not shown.
871 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)