From 1189f62dfbc287496432f049a5f83589da4297ec Mon Sep 17 00:00:00 2001 From: Joao Matos Silva Date: Tue, 22 Jan 2019 22:28:33 +0000 Subject: [PATCH] Update Test Project --- tests/DateTimeExtensions.Tests/ChristianHolidaysTests.cs | 2 +- .../DateTimeExtensions.Tests.csproj | 6 +++--- .../HolidaysTranslations/DefaultNamesTest.cs | 2 +- .../HolidaysTranslations/GermanHolidayNamesTest.cs | 2 +- .../HolidaysTranslations/KRHolidaysNamesTest.cs | 2 +- .../HolidaysTranslations/SpanishHolidaysNamesTest.cs | 2 +- .../HolidaysTranslations/ViHolidaysNamesTest.cs | 2 +- tests/DateTimeExtensions.Tests/TimeTests.cs | 4 ++-- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/DateTimeExtensions.Tests/ChristianHolidaysTests.cs b/tests/DateTimeExtensions.Tests/ChristianHolidaysTests.cs index 9ec0810..812becd 100644 --- a/tests/DateTimeExtensions.Tests/ChristianHolidaysTests.cs +++ b/tests/DateTimeExtensions.Tests/ChristianHolidaysTests.cs @@ -15,7 +15,7 @@ internal class ChristianHolidaysTests private IDictionary easterDates; - [TestFixtureSetUp] + [OneTimeSetUp] public void SetUpYears() { years = new int[] {1800, 1899, 1900, 1999, 2000, 2025, 2035, 2067, 2099}; diff --git a/tests/DateTimeExtensions.Tests/DateTimeExtensions.Tests.csproj b/tests/DateTimeExtensions.Tests/DateTimeExtensions.Tests.csproj index 9a70547..776790d 100644 --- a/tests/DateTimeExtensions.Tests/DateTimeExtensions.Tests.csproj +++ b/tests/DateTimeExtensions.Tests/DateTimeExtensions.Tests.csproj @@ -18,9 +18,9 @@ - - - + + + diff --git a/tests/DateTimeExtensions.Tests/HolidaysTranslations/DefaultNamesTest.cs b/tests/DateTimeExtensions.Tests/HolidaysTranslations/DefaultNamesTest.cs index 5ae829f..2c6e347 100644 --- a/tests/DateTimeExtensions.Tests/HolidaysTranslations/DefaultNamesTest.cs +++ b/tests/DateTimeExtensions.Tests/HolidaysTranslations/DefaultNamesTest.cs @@ -12,7 +12,7 @@ namespace DateTimeExtensions.Tests [TestFixture] public class DefaultNamesTest { - [TestFixtureSetUp] + [OneTimeSetUp] public void Setup() { //setup a default culture diff --git a/tests/DateTimeExtensions.Tests/HolidaysTranslations/GermanHolidayNamesTest.cs b/tests/DateTimeExtensions.Tests/HolidaysTranslations/GermanHolidayNamesTest.cs index 2cff2d0..df2f7a6 100644 --- a/tests/DateTimeExtensions.Tests/HolidaysTranslations/GermanHolidayNamesTest.cs +++ b/tests/DateTimeExtensions.Tests/HolidaysTranslations/GermanHolidayNamesTest.cs @@ -8,7 +8,7 @@ namespace DateTimeExtensions.Tests.HolidaysTranslations [TestFixture] public class GermanHolidayNamesTest { - [TestFixtureSetUp] + [OneTimeSetUp] public void Setup() { //setup a default culture diff --git a/tests/DateTimeExtensions.Tests/HolidaysTranslations/KRHolidaysNamesTest.cs b/tests/DateTimeExtensions.Tests/HolidaysTranslations/KRHolidaysNamesTest.cs index a3c8f00..95aedf9 100644 --- a/tests/DateTimeExtensions.Tests/HolidaysTranslations/KRHolidaysNamesTest.cs +++ b/tests/DateTimeExtensions.Tests/HolidaysTranslations/KRHolidaysNamesTest.cs @@ -12,7 +12,7 @@ namespace DateTimeExtensions.Tests [TestFixture] public class KRHolidaysNamesTest { - [TestFixtureSetUp] + [OneTimeSetUp] public void Setup() { //setup a default culture diff --git a/tests/DateTimeExtensions.Tests/HolidaysTranslations/SpanishHolidaysNamesTest.cs b/tests/DateTimeExtensions.Tests/HolidaysTranslations/SpanishHolidaysNamesTest.cs index 917ccbb..1fbd25b 100644 --- a/tests/DateTimeExtensions.Tests/HolidaysTranslations/SpanishHolidaysNamesTest.cs +++ b/tests/DateTimeExtensions.Tests/HolidaysTranslations/SpanishHolidaysNamesTest.cs @@ -12,7 +12,7 @@ namespace DateTimeExtensions.Tests [TestFixture] public class SpanishHolidaysNamesTest { - [TestFixtureSetUp] + [OneTimeSetUp] public void Setup() { //setup a default culture diff --git a/tests/DateTimeExtensions.Tests/HolidaysTranslations/ViHolidaysNamesTest.cs b/tests/DateTimeExtensions.Tests/HolidaysTranslations/ViHolidaysNamesTest.cs index a54d231..14b047a 100644 --- a/tests/DateTimeExtensions.Tests/HolidaysTranslations/ViHolidaysNamesTest.cs +++ b/tests/DateTimeExtensions.Tests/HolidaysTranslations/ViHolidaysNamesTest.cs @@ -8,7 +8,7 @@ namespace DateTimeExtensions.Tests.HolidaysTranslations [TestFixture] public class ViHolidaysNamesTest { - [TestFixtureSetUp] + [OneTimeSetUp] public void Setup() { new CultureInfo("vi-VN").SetCurrentUICultureInfo(); diff --git a/tests/DateTimeExtensions.Tests/TimeTests.cs b/tests/DateTimeExtensions.Tests/TimeTests.cs index 8bc5ad7..908ef6b 100644 --- a/tests/DateTimeExtensions.Tests/TimeTests.cs +++ b/tests/DateTimeExtensions.Tests/TimeTests.cs @@ -15,7 +15,7 @@ public class TimeTests { private CultureInfo cultureInfo; - [TestFixtureSetUp] + [OneTimeSetUp] public void Setup() { // save the default culture @@ -25,7 +25,7 @@ public void Setup() new CultureInfo("en-GB").SetCurrentCultureInfo(); } - [TestFixtureTearDown] + [OneTimeTearDown] public void TearDown() { //restore the default culture