Permalink
Browse files

Upgraded all packages to the latest

  • Loading branch information...
dariusz-wozniak committed Oct 23, 2016
1 parent eaf0958 commit 180846157f6b7506b268c14a5a51cad2059bbb0e
@@ -20,14 +20,6 @@ public void Divide_ReturnsProperValue(int dividend, int divisor, float expectedQ
Assert.AreEqual(expectedQuotient, quotient);
}
- [Test]
- [ExpectedException(typeof(DivideByZeroException))]
- public void Divide_DivisionByZero_ThrowsException()
- {
- var calc = new Calculator();
- calc.Divide(2, 0);
- }
-
[Test]
public void Divide_DivisionByZero_ThrowsException_AssertThrows()
{
@@ -1,4 +1,5 @@
using System;
+using System.Threading.Tasks;
using NUnit.Framework;
using TddCourse.CalculatorExample;
@@ -8,7 +9,7 @@ namespace TddCourse.Tests.Unit.Part13
public class AsyncTests
{
[Test]
- public async void DivideAsyncTest()
+ public async Task DivideAsyncTest()
{
var calculator = new Calculator();
float quotient = await calculator.DivideAsync(10, 2);
@@ -26,7 +27,7 @@ public void DivideAsyncLambdaTest()
public void WhenDivisorIsZero_ThenDivideByZeroExceptionIsThrown()
{
var calculator = new Calculator();
- Assert.Throws<DivideByZeroException>(async () => await calculator.DivideAsync(10, 0));
+ Assert.That(async () => await calculator.DivideAsync(2, 0), Throws.TypeOf<DivideByZeroException>());
}
}
}
@@ -32,21 +32,25 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
- <Reference Include="FluentAssertions, Version=4.1.1.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
- <HintPath>..\TddCourse\packages\FluentAssertions.4.1.1\lib\net45\FluentAssertions.dll</HintPath>
+ <Reference Include="Castle.Core, Version=3.3.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
+ <HintPath>..\TddCourse\packages\Castle.Core.3.3.3\lib\net45\Castle.Core.dll</HintPath>
<Private>True</Private>
</Reference>
- <Reference Include="FluentAssertions.Core, Version=4.1.1.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
- <HintPath>..\TddCourse\packages\FluentAssertions.4.1.1\lib\net45\FluentAssertions.Core.dll</HintPath>
+ <Reference Include="FluentAssertions, Version=4.15.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
+ <HintPath>..\TddCourse\packages\FluentAssertions.4.15.0\lib\net45\FluentAssertions.dll</HintPath>
<Private>True</Private>
</Reference>
- <Reference Include="Moq, Version=4.2.1510.2205, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
- <HintPath>..\TddCourse\packages\Moq.4.2.1510.2205\lib\net40\Moq.dll</HintPath>
+ <Reference Include="FluentAssertions.Core, Version=4.15.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
+ <HintPath>..\TddCourse\packages\FluentAssertions.4.15.0\lib\net45\FluentAssertions.Core.dll</HintPath>
<Private>True</Private>
</Reference>
- <Reference Include="nunit.framework, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\TddCourse\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
+ <Reference Include="Moq, Version=4.5.23.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
+ <HintPath>..\TddCourse\packages\Moq.4.5.23\lib\net45\Moq.dll</HintPath>
+ <Private>True</Private>
+ </Reference>
+ <Reference Include="nunit.framework, Version=3.5.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
+ <HintPath>..\TddCourse\packages\NUnit.3.5.0\lib\net45\nunit.framework.dll</HintPath>
+ <Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
@@ -87,9 +91,10 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
- <None Include="packages.config" />
+ <None Include="packages.config">
+ <SubType>Designer</SubType>
+ </None>
</ItemGroup>
- <ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
- <package id="FluentAssertions" version="4.1.1" targetFramework="net45" />
- <package id="Moq" version="4.2.1510.2205" targetFramework="net45" />
- <package id="NUnit" version="2.6.4" targetFramework="net45" />
+ <package id="Castle.Core" version="3.3.3" targetFramework="net45" />
+ <package id="FluentAssertions" version="4.15.0" targetFramework="net45" />
+ <package id="Moq" version="4.5.23" targetFramework="net45" />
+ <package id="NUnit" version="3.5.0" targetFramework="net45" />
</packages>

0 comments on commit 1808461

Please sign in to comment.