Skip to content

Commit 0340561

Browse files
committed
Update README.md
1 parent 75329fe commit 0340561

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,27 @@
11
# Exceptionless.RandomData
2-
Utility class to easily generate random data.
2+
[![Build status](https://ci.appveyor.com/api/projects/status/jiw0i4c33c70ofqq?svg=true)](https://ci.appveyor.com/project/Exceptionless/exceptionless-randomdata) [![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/exceptionless/Discuss)
3+
4+
Utility class to easily generate random data. This makes generating good unit test data a breeze!
5+
6+
## Getting Started (Development)
7+
8+
[This package](https://www.nuget.org/packages/Exceptionless.RandomData/) can be installed via the [NuGet package manager](https://docs.nuget.org/consume/Package-Manager-Dialog). If you need help, please contact us via in-app support or [open an issue](https://github.com/exceptionless/Exceptionless.RandomData/issues/new). We’re always here to help if you have any questions!
9+
10+
1. You will need to have [Visual Studio 2013](http://www.visualstudio.com/products/visual-studio-community-vs) installed.
11+
2. Open the `Exceptionless.RandomData.sln` Visual Studio solution file.
12+
13+
## Using RandomData
14+
15+
Below is a small sample of what you can do, so check it out!
16+
17+
```csharp
18+
private int[] _numbers = new[] { 1, 2, 3 };
19+
20+
private enum _days {
21+
Monday,
22+
Tuesday
23+
}
24+
25+
int value = RandomData.GetInt(1, 5);
26+
var day = RandomData.GetEnum<_days>();
27+
```

0 commit comments

Comments
 (0)