forked from NuGet/NuGetGallery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Unit Tests and unified package reference versions
- Loading branch information
1 parent
a581f16
commit 3a720ed
Showing
18 changed files
with
152 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="EntityFramework" version="5.0.0" targetFramework="net45" /> | ||
<package id="Microsoft.Data.Edm" version="5.2.0" targetFramework="net45" /> | ||
<package id="Microsoft.Data.OData" version="5.2.0" targetFramework="net45" /> | ||
<package id="Microsoft.Data.Edm" version="5.6.0" targetFramework="net45" /> | ||
<package id="Microsoft.Data.OData" version="5.6.0" targetFramework="net45" /> | ||
<package id="Microsoft.Web.Xdt" version="1.0.0" targetFramework="net45" /> | ||
<package id="Microsoft.WindowsAzure.ConfigurationManager" version="1.8.0.0" targetFramework="net45" /> | ||
<package id="Microsoft.WindowsAzure.ConfigurationManager" version="2.0.1.0" targetFramework="net45" /> | ||
<package id="Newtonsoft.Json" version="4.5.11" targetFramework="net45" /> | ||
<package id="Nuget.Core" version="2.7.0.1" targetFramework="net45" /> | ||
<package id="System.Spatial" version="5.2.0" targetFramework="net45" /> | ||
<package id="System.Spatial" version="5.6.0" targetFramework="net45" /> | ||
<package id="WindowsAzure.Storage" version="2.1.0.3" targetFramework="net45" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.Data.Edm" version="5.5.0" targetFramework="net45" /> | ||
<package id="Microsoft.Data.OData" version="5.5.0" targetFramework="net45" /> | ||
<package id="Microsoft.Data.Edm" version="5.6.0" targetFramework="net45" /> | ||
<package id="Microsoft.Data.OData" version="5.6.0" targetFramework="net45" /> | ||
<package id="Microsoft.WindowsAzure.ConfigurationManager" version="2.0.1.0" targetFramework="net45" /> | ||
<package id="NLog" version="2.0.0.2000" targetFramework="net45" /> | ||
<package id="System.Spatial" version="5.5.0" targetFramework="net45" /> | ||
<package id="System.Spatial" version="5.6.0" targetFramework="net45" /> | ||
<package id="WindowsAzure.Storage" version="2.1.0.3" targetFramework="net45" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Xunit | ||
{ | ||
/// <summary> | ||
/// Extra asserters | ||
/// </summary> | ||
public static class AssertEx | ||
{ | ||
public static async Task<TException> Throws<TException>(Func<Task> action) | ||
where TException : Exception | ||
{ | ||
TException captured = null; | ||
try | ||
{ | ||
await action(); | ||
} | ||
catch (TException ex) | ||
{ | ||
captured = ex; | ||
} | ||
|
||
Assert.NotNull(captured); | ||
return captured; | ||
} | ||
} | ||
} |
Oops, something went wrong.