Skip to content

Commit 73705ce

Browse files
committed
fixed wrong tests
1 parent a85352f commit 73705ce

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

tests/Microsoft.Graph.DotnetCore.Core.Test/Requests/GraphClientFactoryTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public void CreateClient_WithHandlersHasExceptions()
276276
{
277277
HttpClient client = GraphClientFactory.CreateClient(handlers);
278278
}
279-
catch (Exception exception)
279+
catch (ArgumentException exception)
280280
{
281281
Assert.IsType(typeof(ArgumentException), exception);
282282
Assert.Equal(exception.Message, String.Format("DelegatingHandler array has unexpected InnerHandler. {0} has unexpected InnerHandler.", handlers[handlers.Length - 1]));

tests/Microsoft.Graph.Test/Requests/Functional/MiscTests.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,22 @@ public async Async.Task GroupCreateExtension()
4848
/// I set the autoresponder latency to 10 seconds, and the client's timeout to 7 sec (2 minutes).
4949
/// You'll need to remove the Ignore attribute to run this as well.
5050
/// </summary>
51-
//[TestMethod]
52-
//[Ignore]
53-
//public async Async.Task ManualAdHocTimeoutTest()
54-
//{
55-
// graphClient.HttpProvider.OverallTimeout = new TimeSpan(0, 0, 7);
56-
// try
57-
// {
58-
// User me = await graphClient.Me.Request().GetAsync();
51+
[TestMethod]
52+
[Ignore]
53+
public async Async.Task ManualAdHocTimeoutTest()
54+
{
55+
// graphClient.HttpProvider.OverallTimeout = new TimeSpan(0, 0, 7);
56+
try
57+
{
58+
User me = await graphClient.Me.Request().GetAsync();
5959

60-
// Assert.Fail("Expected an exception if this was setup correctly.");
61-
// }
62-
// catch (ServiceException ex)
63-
// {
64-
// Assert.IsInstanceOfType(ex.InnerException, typeof(Async.TaskCanceledException), "Unexpected inner exception thrown.");
65-
// }
66-
//}
60+
Assert.Fail("Expected an exception if this was setup correctly.");
61+
}
62+
catch (ServiceException ex)
63+
{
64+
Assert.IsInstanceOfType(ex.InnerException, typeof(Async.TaskCanceledException), "Unexpected inner exception thrown.");
65+
}
66+
}
6767
}
6868
}
6969

0 commit comments

Comments
 (0)