Skip to content

Commit bd21270

Browse files
committed
Tweak to SerializeArrayIntegrationTest, which failed after merging the changes to SerializerIntegrationTest.json .
1 parent ee7e4d2 commit bd21270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JSONAPI.Tests/Json/JsonApiMediaFormaterTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public void SerializeArrayIntegrationTest()
146146
// Act
147147
//Payload payload = new Payload(a.Posts);
148148
//js.Serialize(jw, payload);
149-
formatter.WriteToStreamAsync(typeof(Post), a.Posts.ToArray(), stream, (System.Net.Http.HttpContent)null, (System.Net.TransportContext)null);
149+
formatter.WriteToStreamAsync(typeof(Post), new[] { p, p2, p3, p4 }, stream, (System.Net.Http.HttpContent)null, (System.Net.TransportContext)null);
150150

151151
// Assert
152152
string output = System.Text.Encoding.ASCII.GetString(stream.ToArray());

0 commit comments

Comments
 (0)