Skip to content

Commit

Permalink
Update Test Project
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomatossilva committed Jan 22, 2019
1 parent 9c8c84f commit 1189f62
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion tests/DateTimeExtensions.Tests/ChristianHolidaysTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ internal class ChristianHolidaysTests

private IDictionary<int, DateTime> easterDates;

[TestFixtureSetUp]
[OneTimeSetUp]
public void SetUpYears()
{
years = new int[] {1800, 1899, 1900, 1999, 2000, 2025, 2035, 2067, 2099};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
<PackageReference Include="Nunit" Version="3.7.1" />
<PackageReference Include="Moq" Version="4.6.38-alpha" />
<PackageReference Include="NUnit3TestAdapter" Version="3.8.0-alpha1" />
<PackageReference Include="Nunit" Version="3.11.0" />
<PackageReference Include="Moq" Version="4.10.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.12.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace DateTimeExtensions.Tests
[TestFixture]
public class DefaultNamesTest
{
[TestFixtureSetUp]
[OneTimeSetUp]
public void Setup()
{
//setup a default culture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DateTimeExtensions.Tests.HolidaysTranslations
[TestFixture]
public class GermanHolidayNamesTest
{
[TestFixtureSetUp]
[OneTimeSetUp]
public void Setup()
{
//setup a default culture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace DateTimeExtensions.Tests
[TestFixture]
public class KRHolidaysNamesTest
{
[TestFixtureSetUp]
[OneTimeSetUp]
public void Setup()
{
//setup a default culture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace DateTimeExtensions.Tests
[TestFixture]
public class SpanishHolidaysNamesTest
{
[TestFixtureSetUp]
[OneTimeSetUp]
public void Setup()
{
//setup a default culture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DateTimeExtensions.Tests.HolidaysTranslations
[TestFixture]
public class ViHolidaysNamesTest
{
[TestFixtureSetUp]
[OneTimeSetUp]
public void Setup()
{
new CultureInfo("vi-VN").SetCurrentUICultureInfo();
Expand Down
4 changes: 2 additions & 2 deletions tests/DateTimeExtensions.Tests/TimeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class TimeTests
{
private CultureInfo cultureInfo;

[TestFixtureSetUp]
[OneTimeSetUp]
public void Setup()
{
// save the default culture
Expand All @@ -25,7 +25,7 @@ public void Setup()
new CultureInfo("en-GB").SetCurrentCultureInfo();
}

[TestFixtureTearDown]
[OneTimeTearDown]
public void TearDown()
{
//restore the default culture
Expand Down

0 comments on commit 1189f62

Please sign in to comment.