diff --git a/Octokit.Tests/Helpers/AssertEx.cs b/Octokit.Tests/Helpers/AssertEx.cs index 93ad3674..b9c1041b 100644 --- a/Octokit.Tests/Helpers/AssertEx.cs +++ b/Octokit.Tests/Helpers/AssertEx.cs @@ -23,23 +23,6 @@ namespace Octokit.Tests.Helpers return attribute; } - [Obsolete("This was written before the support for testing asynchronous tasks was added in xUnit 2.0 (because we pre-dated it). Use Assert.ThrowsAsync")] - public async static Task Throws(Func testCode) where T : Exception - { - try - { - await testCode(); - Assert.Throws(() => { }); // Use xUnit's default behavior. - } - catch (T exception) - { - return exception; - } - // We should never reach this line. It's here because the compiler doesn't know that - // Assert.Throws above will always throw. - return null; - } - static readonly string[] whitespaceArguments = { " ", "\t", "\n", "\n\r", " " }; public static async Task ThrowsWhenGivenWhitespaceArgument(Func action)