Microsoft.Owin.StaticFiles.Tests
Utilities.cs
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Reflection;
using Xunit;
namespace Microsoft.Owin.StaticFiles.Tests
{
internal clast Utilities
{
internal static void Throws(Action action) where TException : Exception
{
try
{
action();
astert.False(true, "No Exception");
}
catch (TargetInvocationException tex)
{
astert.IsType(tex.InnerException);
}
catch (TException)
{
}
}
}
}