Permalink
Browse files

Simplify JsonGrammarTests assertions.

  • Loading branch information...
1 parent b53bf19 commit b7e6ffcf48480cd04a35248f95ff30e07026c2a6 @plioi committed Apr 1, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/Parsley.Test/IntegrationTests/Json/JsonGrammarTests.cs
@@ -16,15 +16,15 @@ public void ParsesTrueLiteral()
{
var tokens = Tokenize("true");
- Json.Parses(tokens).WithValue(value => ((bool)value).ShouldBeTrue());
+ Json.Parses(tokens).WithValue(true);
}
[Fact]
public void ParsesFalseLiteral()
{
var tokens = Tokenize("false");
- Json.Parses(tokens).WithValue(value => ((bool)value).ShouldBeFalse());
+ Json.Parses(tokens).WithValue(false);
}
[Fact]
@@ -40,7 +40,7 @@ public void ParsesNumbers()
{
var tokens = Tokenize("10.123E-11");
- Json.Parses(tokens).WithValue(value => value.ShouldEqual(10.123E-11m));
+ Json.Parses(tokens).WithValue(10.123E-11m);
}
[Fact]
@@ -50,8 +50,8 @@ public void ParsesQuotations()
var filled = Tokenize("\"abc \\\" \\\\ \\/ \\b \\f \\n \\r \\t \\u263a def\"");
const string expected = "abc \" \\ / \b \f \n \r \t ☺ def";
- Json.Parses(empty).WithValue(value => value.ShouldEqual(""));
- Json.Parses(filled).WithValue(value => value.ShouldEqual(expected));
+ Json.Parses(empty).WithValue("");
+ Json.Parses(filled).WithValue(expected);
}
[Fact]

0 comments on commit b7e6ffc

Please sign in to comment.