public void BasicCommTest() { string response; var start = Environment.TickCount; using (var client = new TestServiceClient("proto")) { var d = client.GetDataUsingDataContractAsync(new CompositeType() { BoolValue = true, StringValue = "Test" }); var composite = d.GetAwaiter().GetResult(); AssertComposite(composite); response = client.GetData(2); } var end = Environment.TickCount - start; Console.WriteLine(end); Assert.IsNotNull(response); Assert.IsTrue(response.Equals("2", StringComparison.Ordinal), "response was unexpected, expected : {0}, actual: {1}", "2", response); }