Пример #1
0
        public void ValidateForwardClientCallDefault()
        {
            ManagementTestClient client       = InstrumentClient(new ManagementTestClient());
            TestResource         testResource = client.GetTestResource();

            Assert.AreEqual("TestResourceProxy", testResource.GetType().Name);
            var ex = Assert.ThrowsAsync <InvalidOperationException>(async() => testResource = await testResource.GetForwardsCallDefaultAsync());

            Assert.AreEqual(ex.Message, "Expected some diagnostic scopes to be created, found none");
        }