Skip to content

Commit 35c5150

Browse files
committed
zip
1 parent c27cae9 commit 35c5150

8 files changed

Lines changed: 99 additions & 35 deletions

File tree

v2/book/examples/Porticle.Enumly.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h2>Info</h2>
1212

1313
<h2>About</h2>
1414

15-
Mapping enum to enum
15+
generate enum-to-enum mappings, so one enum values can be converted to another enum type with matching names or values
1616

1717
<h2>
1818
How to use
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
2+
<h1>RSCG nr 276 : TinyBDD.MSTest</h1>
3+
4+
<h2>Info</h2>
5+
Nuget : <a href="https://www.nuget.org/packages/TinyBDD.MSTest/" target="_blank">https://www.nuget.org/packages/TinyBDD.MSTest/</a>
6+
7+
<p>You can find more details at : <a href="https://github.com/JerrettDavis/TinyBDD" target="_blank"> https://github.com/JerrettDavis/TinyBDD</a></p>
8+
9+
<p>Author :Jerrett Davis</p>
10+
11+
<p>Source: <a href="https://github.com/JerrettDavis/TinyBDD" target="_blank">https://github.com/JerrettDavis/TinyBDD</a> </p>
12+
13+
<h2>About</h2>
14+
15+
Optimizing Test Code with BDD Style Testing
16+
17+
<h2>
18+
How to use
19+
</h2>
20+
<h3>
21+
Add reference to the <a href="https://www.nuget.org/packages/TinyBDD.MSTest/" target="_blank">TinyBDD.MSTest</a> in the csproj
22+
</h3>
23+
<img src="images/TinyBDD.MSTest/TestClock.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 TestClock.cs
29+
<br />
30+
<img src="images/TinyBDD.MSTest/csFiles/TestClock.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 TestClock_TestData_TestMyClock_Optimized.g.cs
36+
<br />
37+
<img src="images/TinyBDD.MSTest/generated/TestClock_TestData_TestMyClock_Optimized.g.cs.png" width="580" height="580" />
38+
39+
<p>
40+
You can download the code and this page as pdf from
41+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/TinyBDD.MSTest'>
42+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/TinyBDD.MSTest
43+
</a>
44+
</p>
45+
46+
47+
<p>
48+
You can see the whole list at
49+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'>
50+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG
51+
</a>
52+
</p>
53+

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 275 RSCG with examples =>
20+
This is the list of 276 RSCG with examples =>
2121
</h1>
2222

2323
<table >
@@ -1126,6 +1126,10 @@ <h1>
11261126
<td>275</td>
11271127
<td><a href="examples/Porticle.Enumly.html">Porticle.Enumly</a></td>
11281128
</tr>
1129+
<tr>
1130+
<td>276</td>
1131+
<td><a href="examples/TinyBDD.MSTest.html">TinyBDD.MSTest</a></td>
1132+
</tr>
11291133
</table>
11301134

11311135

v2/book/pandocHTML.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ input-files:
289289
- examples/ScottEncodingGenerator.html
290290
- examples/Dirge.html
291291
- examples/Porticle.Enumly.html
292+
- examples/TinyBDD.MSTest.html
292293

293294
# or you may use input-file: with a single value
294295
# defaults:

v2/docFind.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,5 +1648,11 @@
16481648
"category": "Enum",
16491649
"href": "/RSCG_Examples/v2/docs/Porticle.Enumly/",
16501650
"body": "Roslyn source generator for compile-time enum-to-enum mapping by member name with prefix stripping, nullable enum support, explicit value overrides and exhaustive coverage diagnostics."
1651+
},
1652+
{
1653+
"title": "TinyBDD.MSTest",
1654+
"category": "Tests",
1655+
"href": "/RSCG_Examples/v2/docs/TinyBDD.MSTest/",
1656+
"body": "Package Description"
16511657
}
16521658
]

v2/rscg_examples_site/docs/RSCG-Examples/TinyBDD.MSTest.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ Jerrett Davis
4949
## Original Readme
5050
:::note
5151

52-
# TinyBDD
52+
### TinyBDD
5353

5454
[![CI](https://github.com/JerrettDavis/TinyBDD/actions/workflows/ci.yml/badge.svg)](https://github.com/JerrettDavis/TinyBDD/actions/workflows/ci.yml)
5555
[![codecov](https://codecov.io/gh/JerrettDavis/TinyBDD/branch/main/graph/badge.svg)](https://codecov.io/gh/JerrettDavis/TinyBDD)
5656
[![CodeQL](https://github.com/JerrettDavis/TinyBDD/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/JerrettDavis/TinyBDD/security/code-scanning)
57-
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE.md)
57+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/JerrettDavis/TinyBDD/LICENSE.md)
5858
![.NET Versions](https://img.shields.io/badge/.NET%208.0%20%7C%209.0-blue)
5959

6060
**NuGet Packages:**
@@ -88,9 +88,9 @@ Both approaches are designed to:
8888

8989
---
9090

91-
## Features
91+
###### Features
9292

93-
### Code-First Approach
93+
######### Code-First Approach
9494

9595
- **Readable BDD syntax**:
9696
```csharp
@@ -117,7 +117,7 @@ Both approaches are designed to:
117117
But != 11 [OK]
118118
```
119119

120-
### File-Based Approach
120+
######### File-Based Approach
121121

122122
- **Gherkin .feature files**:
123123
```gherkin
@@ -142,7 +142,7 @@ Both approaches are designed to:
142142
- **Scenario Outlines** with Examples tables for parameterized tests
143143
- **YAML format** as alternative to Gherkin for tooling integration
144144

145-
### Framework Integration
145+
######### Framework Integration
146146

147147
- **Test framework adapters**:
148148

@@ -153,7 +153,7 @@ Both approaches are designed to:
153153

154154
---
155155

156-
## Installation
156+
###### Installation
157157

158158
Add TinyBDD via NuGet:
159159

@@ -188,20 +188,20 @@ dotnet add package TinyBDD.Xunit.v3
188188
For Extensions:
189189

190190
```powershell
191-
# File-Based DSL (Gherkin and YAML)
191+
### File-Based DSL (Gherkin and YAML)
192192
dotnet add package TinyBDD.Extensions.FileBased
193193
194-
# Dependency Injection
194+
### Dependency Injection
195195
dotnet add package TinyBDD.Extensions.DependencyInjection
196196
197-
# Hosting (includes DI)
197+
### Hosting (includes DI)
198198
dotnet add package TinyBDD.Extensions.Hosting
199199
200-
# JSON Reporting
200+
### JSON Reporting
201201
dotnet add package TinyBDD.Extensions.Reporting
202202
```
203203

204-
### ⚡ Performance Optimization (Automatic!)
204+
######### ⚡ Performance Optimization (Automatic!)
205205

206206
TinyBDD includes a **Roslyn source generator** that **automatically optimizes ALL BDD tests at compile-time** starting in v1.1. No attributes needed, no configuration, no additional packages!
207207

@@ -257,9 +257,9 @@ The generator transforms fluent chains into optimized procedural code while main
257257

258258
---
259259

260-
## Basic Usage
260+
###### Basic Usage
261261

262-
### MSTest Example
262+
######### MSTest Example
263263

264264
```csharp
265265
using TinyBDD.MSTest;
@@ -283,7 +283,7 @@ public class MathTests : TinyBddMsTestBase
283283

284284
---
285285

286-
### NUnit Example
286+
######### NUnit Example
287287

288288
```csharp
289289
using TinyBDD.NUnit;
@@ -306,7 +306,7 @@ public class MathTests : TinyBddNUnitBase
306306

307307
---
308308

309-
### xUnit Example
309+
######### xUnit Example
310310

311311
```csharp
312312
using TinyBDD.Xunit;
@@ -329,9 +329,9 @@ public class MathTests : TinyBddXunitBase
329329

330330
---
331331

332-
## File-Based Usage
332+
###### File-Based Usage
333333

334-
### Gherkin Feature File
334+
######### Gherkin Feature File
335335

336336
Create `Features/Calculator.feature`:
337337

@@ -355,7 +355,7 @@ Examples:
355355
| 4 | 5 | 20 |
356356
```
357357

358-
### Driver Implementation
358+
######### Driver Implementation
359359

360360
```csharp
361361
using TinyBDD.Extensions.FileBased.Core;
@@ -396,7 +396,7 @@ public class CalculatorDriver : IApplicationDriver
396396
}
397397
```
398398

399-
### Test Class
399+
######### Test Class
400400

401401
```csharp
402402
using TinyBDD.Extensions.FileBased;
@@ -432,7 +432,7 @@ Scenario Outline: Multiply numbers (Example 1: a=2, b=3, expected=6)
432432

433433
---
434434

435-
## Step Types
435+
###### Step Types
436436

437437
| Step | Purpose | Example |
438438
|---------|---------------------------------------------|--------------------------------|
@@ -446,7 +446,7 @@ All step types have **sync** and **async** overloads.
446446

447447
---
448448

449-
## Cleanup with Finally
449+
###### Cleanup with Finally
450450

451451
`Finally` registers cleanup handlers that execute after all steps complete, even if steps throw exceptions. This is useful for resource cleanup like disposing objects:
452452

@@ -480,7 +480,7 @@ await Given("resource A", () => new ResourceA())
480480

481481
---
482482

483-
## Tags
483+
###### Tags
484484

485485
Tags can be added for reporting and filtering:
486486

@@ -498,7 +498,7 @@ In xUnit, tags are logged to the test output:
498498

499499
---
500500

501-
## Asserting Pass/Fail
501+
###### Asserting Pass/Fail
502502

503503
TinyBDD tracks step results internally. At the end of the scenario, call one of the following methods:
504504

@@ -523,7 +523,7 @@ This ensures that all steps passed and throws if any failed.
523523

524524
---
525525

526-
## Philosophy
526+
###### Philosophy
527527

528528
TinyBDD was created with a few guiding principles:
529529

@@ -546,7 +546,7 @@ TinyBDD was created with a few guiding principles:
546546

547547
---
548548

549-
## Gherkin-Style Output
549+
###### Gherkin-Style Output
550550

551551
When running a scenario, TinyBDD prints structured step output similar to Gherkin formatting.
552552
For example:
@@ -576,7 +576,7 @@ If a step fails, you’ll see exactly which step failed, how long it took, and t
576576

577577
---
578578

579-
## Why Use TinyBDD?
579+
###### Why Use TinyBDD?
580580

581581
TinyBDD offers flexibility that traditional BDD tools don't:
582582

@@ -596,7 +596,7 @@ TinyBDD offers flexibility that traditional BDD tools don't:
596596

597597
---
598598

599-
## Minimal Example
599+
###### Minimal Example
600600

601601
For the smallest possible test:
602602

@@ -617,7 +617,7 @@ Then equals two [OK]
617617

618618
---
619619

620-
## Async Philosophy
620+
###### Async Philosophy
621621

622622
In TinyBDD, sync and async steps are **equally first-class** citizens.
623623

@@ -639,7 +639,7 @@ You can even mix sync and async steps freely in the same scenario.
639639

640640
---
641641

642-
## Output Style
642+
###### Output Style
643643

644644
TinyBDD always prints the BDD keyword for the step type (`Given`, `When`, `Then`, `And`, `But`), the step title, the
645645
result `[OK]` / `[FAIL]`, and the elapsed time in milliseconds.
@@ -654,7 +654,7 @@ Actual: 3
654654

655655
---
656656

657-
## Recommended Usage
657+
###### Recommended Usage
658658

659659
* One **scenario** per test method.
660660
* Keep each step **single-purpose**—avoid hiding multiple unrelated actions in one step.
@@ -664,9 +664,9 @@ Actual: 3
664664

665665
----
666666

667-
## License
667+
###### License
668668

669-
[MIT License](LICENSE)
669+
[MIT License](https://github.com/JerrettDavis/TinyBDD/LICENSE)
670670

671671

672672
:::
49 Bytes
Binary file not shown.
1.75 KB
Binary file not shown.

0 commit comments

Comments
 (0)