Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Commit

Permalink
Removed iffy test because json date support is borked i json
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodejunkie committed Apr 7, 2011
1 parent ddc0008 commit e163a43
Showing 1 changed file with 0 additions and 20 deletions.
Expand Up @@ -85,26 +85,6 @@ public void Should_be_case_insensitive_in_can_deserialize()
result.ShouldBeTrue();
}

[Fact]
public void Should_deserialize_json_model()
{
var bodyStream = new MemoryStream(Encoding.UTF8.GetBytes(this.testModelJson));
var context = new BindingContext()
{
DestinationType = typeof(TestModel),
ValidModelProperties = typeof(TestModel).GetProperties(),
};

var result = (TestModel)this.deserialize.Deserialize(
"application/json",
bodyStream,
context);

result.ShouldNotBeNull();
result.ShouldBeOfType(typeof(TestModel));
result.ShouldEqual(this.testModel);
}

[Fact]
public void Should_only_set_allowed_properties()
{
Expand Down

0 comments on commit e163a43

Please sign in to comment.