Skip to content

Commit

Permalink
GetString is a bit different in WINRT and WINDOWS_PHONE
Browse files Browse the repository at this point in the history
  • Loading branch information
tofutim authored and oysteinkrog committed Nov 14, 2015
1 parent b029393 commit 8cd9e0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/BlobSerializationTest.cs
Expand Up @@ -332,7 +332,11 @@ public void SavesUnsupportedTypes()
{
if (t == typeof(DivideByZeroException))
{
#if __WINRT__ || WINDOWS_PHONE
var json = Encoding.UTF8.GetString(d, 0, d.Length);
#else
var json = Encoding.UTF8.GetString(d);
#endif
var result = JsonConvert.DeserializeObject<DivideByZeroException>(json);
return result;
}
Expand Down

0 comments on commit 8cd9e0e

Please sign in to comment.