From 2f464a7c64b608c30aaef80de3a17964545cd3a9 Mon Sep 17 00:00:00 2001 From: MrDave1999 Date: Tue, 18 Apr 2023 18:39:36 -0500 Subject: [PATCH] Use [Test] decorator in some tests --- .../Features/Chatbot/Dialogs/RootDialogTests.cs | 2 +- .../Features/AvailabilityHours/AvailabilityTests.cs | 8 ++++---- .../Features/Chatbot/Factories/HeroCardFactoryTests.cs | 6 +++--- .../Features/Chatbot/Factories/UserProfileFactoryTests.cs | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/DentallApp.IntegrationTests/Features/Chatbot/Dialogs/RootDialogTests.cs b/tests/DentallApp.IntegrationTests/Features/Chatbot/Dialogs/RootDialogTests.cs index a29e84e6..79dbe7f0 100644 --- a/tests/DentallApp.IntegrationTests/Features/Chatbot/Dialogs/RootDialogTests.cs +++ b/tests/DentallApp.IntegrationTests/Features/Chatbot/Dialogs/RootDialogTests.cs @@ -15,7 +15,7 @@ public void TestInitialize() Environment.SetEnvironmentVariable(AppSettings.MaxDaysInCalendar, "60"); } - [TestCase] + [Test] public async Task Bot_WhenAnIncomingActivityIsSent_ShouldRespondWithAnOutgoingActivity() { await SendReplyWithChoiceSetAsync(choiceType: PatientName, incomingActivity: CreateInitialActivity()); diff --git a/tests/DentallApp.UnitTests/Features/AvailabilityHours/AvailabilityTests.cs b/tests/DentallApp.UnitTests/Features/AvailabilityHours/AvailabilityTests.cs index 1cb1d823..8de75c96 100644 --- a/tests/DentallApp.UnitTests/Features/AvailabilityHours/AvailabilityTests.cs +++ b/tests/DentallApp.UnitTests/Features/AvailabilityHours/AvailabilityTests.cs @@ -14,7 +14,7 @@ public void GetAvailableHours_WhenNumberOfUnavailableHoursIsGreaterThanOrEqualTo availableHours.Should().BeEquivalentTo(expectedList); } - [TestCase] + [Test] public void GetAvailableHours_WhenDentistHasSomeTimeoffOrRestTime_ShouldTakeItAsRangeOfUnavailableTime() { // Arrange @@ -56,7 +56,7 @@ public void GetAvailableHours_WhenDentistHasSomeTimeoffOrRestTime_ShouldTakeItAs availableHours.Should().BeEquivalentTo(expectedList); } - [TestCase] + [Test] public void GetAvailableHours_WhenDurationOfDentalServiceIsEqualToZero_ShouldThrowArgumentException() { // Arrange @@ -75,7 +75,7 @@ public void GetAvailableHours_WhenDurationOfDentalServiceIsEqualToZero_ShouldThr act.Should().Throw(); } - [TestCase] + [Test] public void GetAvailableHours_WhenNumberOfAvailableHoursIsZero_ShouldReturnsNull() { // Arrange @@ -101,7 +101,7 @@ public void GetAvailableHours_WhenNumberOfAvailableHoursIsZero_ShouldReturnsNull availableHours.Should().BeNull(); } - [TestCase] + [Test] public void GetAvailableHours_WhenAppointmentDateIsEqualToTheCurrentDate_ShouldDiscardAvailableHoursThatAreLessThanTheCurrentTime() { // Arrange diff --git a/tests/DentallApp.UnitTests/Features/Chatbot/Factories/HeroCardFactoryTests.cs b/tests/DentallApp.UnitTests/Features/Chatbot/Factories/HeroCardFactoryTests.cs index 07fe4773..f60328e3 100644 --- a/tests/DentallApp.UnitTests/Features/Chatbot/Factories/HeroCardFactoryTests.cs +++ b/tests/DentallApp.UnitTests/Features/Chatbot/Factories/HeroCardFactoryTests.cs @@ -2,7 +2,7 @@ public class HeroCardFactoryTests { - [TestCase] + [Test] public void CreateSchedulesHeroCard_WhenNumberOfAvailableHoursIsMultiplesOfFive_ShouldReturnsHeroCardsWithAvailableHours() { // Arrange @@ -53,7 +53,7 @@ public void CreateSchedulesHeroCard_WhenNumberOfAvailableHoursIsMultiplesOfFive_ heroCards.Should().BeEquivalentTo(expectedHeroCards); } - [TestCase] + [Test] public void CreateSchedulesHeroCard_WhenNumberOfAvailableHoursIsNotMultiplesOfFive_ShouldReturnsHeroCardsWithAvailableHours() { // Arrange @@ -100,7 +100,7 @@ public void CreateSchedulesHeroCard_WhenNumberOfAvailableHoursIsNotMultiplesOfFi heroCards.Should().BeEquivalentTo(expectedHeroCards); } - [TestCase] + [Test] public void CreateSchedulesHeroCard_WhenNumberOfAvailableHoursIsLessThanFive_ShouldReturnsHeroCardsWithAvailableHours() { // Arrange diff --git a/tests/DentallApp.UnitTests/Features/Chatbot/Factories/UserProfileFactoryTests.cs b/tests/DentallApp.UnitTests/Features/Chatbot/Factories/UserProfileFactoryTests.cs index 24530ca3..a45d4443 100644 --- a/tests/DentallApp.UnitTests/Features/Chatbot/Factories/UserProfileFactoryTests.cs +++ b/tests/DentallApp.UnitTests/Features/Chatbot/Factories/UserProfileFactoryTests.cs @@ -2,7 +2,7 @@ public class UserProfileFactoryTests { - [TestCase] + [Test] public void Create_WhenChannelIdStartsWithPrefix_ShouldReturnsUserProfileInstance() { // Arrange @@ -18,7 +18,7 @@ public void Create_WhenChannelIdStartsWithPrefix_ShouldReturnsUserProfileInstanc userProfile.FullName.Should().BeNull(); } - [TestCase] + [Test] public void Create_WhenChannelIdHasNotPrefix_ShouldReturnsUserProfileInstance() { // Arrange @@ -58,7 +58,7 @@ public void Create_WhenIdentifiersCouldNotBeExtractedSeparately_ShouldThrowInval .WithMessage(expectedMessage); } - [TestCase] + [Test] public void Create_WhenChannelDataIsNull_ShouldReturnsFullNameWithNullValue() { // Arrange