Skip to content

Commit

Permalink
References #33
Browse files Browse the repository at this point in the history
  • Loading branch information
andreashuber-lawo committed Jan 31, 2017
1 parent d52384e commit 27ed394
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Lawo.EmberPlusSharpTest/Model/ConsumerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ namespace Lawo.EmberPlusSharp.Model
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Net.Sockets;
using System.Reflection;
using System.Runtime.Remoting.Metadata.W3cXsd2001;
using System.Threading;
Expand Down Expand Up @@ -1392,6 +1393,35 @@ public void Bug27Test()
"false"));
}

/// <summary>Exposes <see href="https://github.com/Lawo/ember-plus-sharp/issues/33">Bug 33</see>.</summary>
[TestMethod]
[TestCategory("Manual")]
public void Bug33Test()
{
AsyncPump.Run(async () =>
{
var tcpClient = new TcpClient();
await tcpClient.ConnectAsync("localhost", 9000);
var stream = tcpClient.GetStream();
using (var client = new S101Client(tcpClient, stream.ReadAsync, stream.WriteAsync))
using (var consumer =
await Consumer<EmptyDynamicRoot>.CreateAsync(client, 10000, ChildrenRetrievalPolicy.DirectOnly))
{
foreach (var child in consumer.Root.DynamicChildren)
{
var node = child as INode;
if (node != null)
{
node.ChildrenRetrievalPolicy = ChildrenRetrievalPolicy.DirectOnly;
}
}
await consumer.SendAsync();
}
});
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////

private static Task TestConsumerAfterFirstRequest<TRoot>(
Expand Down

0 comments on commit 27ed394

Please sign in to comment.