Skip to content

Commit

Permalink
Removed old tests. Refactored DeserializeAnonymousType method.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK committed Mar 2, 2008
1 parent abd8da2 commit e2203d8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 51 deletions.
2 changes: 1 addition & 1 deletion Src/Newtonsoft.Json.Tests/LinqToJsonTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ public void FromObject()

JObject o = JObject.FromObject(new
{
channel = new
channel = new
{
title = "James Newton-King",
link = "http://james.newtonking.com",
Expand Down
1 change: 0 additions & 1 deletion Src/Newtonsoft.Json.Tests/Newtonsoft.Json.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
<Compile Include="LinqToJsonTest.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="TestFixtureBase.cs" />
<Compile Include="UtcDateTimeConverterTest.cs" />
<Compile Include="XmlNodeConverterTest.cs" />
</ItemGroup>
<ItemGroup>
Expand Down
48 changes: 0 additions & 48 deletions Src/Newtonsoft.Json.Tests/UtcDateTimeConverterTest.cs

This file was deleted.

2 changes: 1 addition & 1 deletion Src/Newtonsoft.Json/JavaScriptConvert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public static T DeserializeObject<T>(string value)
/// <returns>The deserialized anonymous type from the JSON string.</returns>
public static T DeserializeAnonymousType<T>(string value, T anonymousTypeObject)
{
return (T)DeserializeObject(value, typeof(T));
return DeserializeObject<T>(value);
}

/// <summary>
Expand Down

0 comments on commit e2203d8

Please sign in to comment.