Skip to content

Commit

Permalink
Updating docs and release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
soxtoby committed May 6, 2017
1 parent 86d3b28 commit ae5122b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
12 changes: 10 additions & 2 deletions EasyAssertions.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
# Visual Studio 15
VisualStudioVersion = 15.0.26228.4
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EasyAssertions", "EasyAssertions\EasyAssertions.csproj", "{520003AC-48A4-40B6-AC33-DF5666AD6DFF}"
EndProject
Expand All @@ -12,6 +12,14 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
EasyAssertions\EasyAssertions.nuspec = EasyAssertions\EasyAssertions.nuspec
License.txt = License.txt
Readme.md = Readme.md
ReleaseNotes.md = ReleaseNotes.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "doc", "doc", "{6BE88110-6797-4C3B-8910-3E47DA86F3F7}"
ProjectSection(SolutionItems) = preProject
doc\Assertions.md = doc\Assertions.md
doc\CustomAssertions.md = doc\CustomAssertions.md
doc\Readme.md = doc\Readme.md
EndProjectSection
EndProject
Global
Expand Down
9 changes: 9 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# v2.1.0
## New Features
- Enum assertions ([981787b](https://github.com/soxtoby/EasyAssertions/commit/981787b5b9f337ea471c4c42753221a9c4e38d67), [#5](https://github.com/soxtoby/EasyAssertions/issues/5)).
- `ShouldBeValue`, for asserting that value types are equal (mostly useful for enum IntelliSense)
- `ShouldHaveFlag`, for asserting that a flags enum has a particular flag.

## Bug Fixes
- NuGet package includes XML documentation ([86d3b28](https://github.com/soxtoby/EasyAssertions/commit/86d3b28625be4c1b6f7b88021e290e806f2e7813), [#6](https://github.com/soxtoby/EasyAssertions/issues/6)).

# v2.0.1
## Bug Fixes
- Fixed null-ref in `ShouldFail` and `ShouldFailWith` when task is cancelled ([9e907db](https://github.com/soxtoby/EasyAssertions/commit/9e907db5ffed6d298b7c791dd3b6f9dbb0b12447), [#4](https://github.com/soxtoby/EasyAssertions/issues/4)).
Expand Down
8 changes: 8 additions & 0 deletions doc/Assertions.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ Almost all assertions take in an optional message as their last parameter.
(1.2).ShouldNotBe(1, 0.1); // not 1, with a tolerance of 0.1
double.NaN.ShouldBeNaN(); // also works for float.NaN
(1.2).ShouldNotBeNaN();

// enums
MyEnum.Value.ShouldBeValue(MyEnum.Value);
```

# Reference Equality
Expand Down Expand Up @@ -40,6 +43,11 @@ new object().ShouldNotBeNull();
"foo".ShouldMatch("f.+", RegexOptions.IgnoreCase);
```

# Enums
```c#
(MyFlagsEnum.Flag1 | MyFlagsEnum.Flag2).ShouldHaveFlag(MyFlagsEnum.Flag1);
```

# Comparables
```c#
2.ShouldBeGreaterThan(1);
Expand Down

0 comments on commit ae5122b

Please sign in to comment.