Skip to content

Commit

Permalink
Highlight code samples in the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Umqra authored Aug 8, 2019
1 parent 4cfe5c7 commit 3d70efb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ See [CHANGELOG](CHANGELOG.md).
## How to Use

First define GroboContainer configuration for your test suite:
```
```C#
public static class GroboTestMachineryContainerConfigurator
{
public static ContainerConfiguration GetContainerConfiguration(string testSuiteName)
Expand All @@ -24,7 +24,7 @@ public static class GroboTestMachineryContainerConfigurator
By convention this must be done in a static method `GetContainerConfiguration` in a class named exactly `GroboTestMachineryContainerConfigurator` which is placed in the same assembly as your tests.

Then define several helper attributes which will hold logic for different aspects of test environment configuration:
```
```C#
public class WithX : GroboTestSuiteWrapperAttribute
{
public override void SetUp(string suiteName, Assembly testAssembly, IEditableGroboTestContext suiteContext)
Expand Down Expand Up @@ -65,7 +65,7 @@ public class AndLogTestName : GroboTestMethodWrapperAttribute
```

And now you can write your test cases with minimum container configuration boilerplate:
```
```C#
[GroboTestSuite("SomeTestSuite"), WithY, WithFixedSeedRandom, AndLogTestName]
public interface ISomeTestSuite { }

Expand Down

0 comments on commit 3d70efb

Please sign in to comment.