-Fixed tests

This commit is contained in:
James Newton-King
2015-08-24 12:59:04 +12:00
parent 32869955f1
commit 17d9a53818
2 changed files with 24 additions and 1 deletions
@@ -60,5 +60,17 @@ namespace Newtonsoft.Json.Tests.Documentation.Samples.Linq
}
#endregion
}
public static class File
{
public static StreamWriter CreateText(string path)
{
return new StreamWriter(new MemoryStream());
}
public static void WriteAllText(string s1, string s2)
{
}
}
}
}
@@ -34,7 +34,6 @@ using Assert = Newtonsoft.Json.Tests.XUnitAssert;
#else
using NUnit.Framework;
#endif
using File = System.IO.File;
namespace Newtonsoft.Json.Tests.Documentation.Samples.Serializer
{
@@ -70,5 +69,17 @@ namespace Newtonsoft.Json.Tests.Documentation.Samples.Serializer
}
#endregion
}
public static class File
{
public static StreamWriter CreateText(string path)
{
return new StreamWriter(new MemoryStream());
}
public static void WriteAllText(string s1, string s2)
{
}
}
}
}