Skip to content

Commit

Permalink
Use [Test] decorator in some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDave1999 committed Apr 18, 2023
1 parent 83277af commit 2f464a7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public void GetAvailableHours_WhenNumberOfUnavailableHoursIsGreaterThanOrEqualTo
availableHours.Should().BeEquivalentTo(expectedList);
}

[TestCase]
[Test]
public void GetAvailableHours_WhenDentistHasSomeTimeoffOrRestTime_ShouldTakeItAsRangeOfUnavailableTime()
{
// Arrange
Expand Down Expand Up @@ -56,7 +56,7 @@ public void GetAvailableHours_WhenDentistHasSomeTimeoffOrRestTime_ShouldTakeItAs
availableHours.Should().BeEquivalentTo(expectedList);
}

[TestCase]
[Test]
public void GetAvailableHours_WhenDurationOfDentalServiceIsEqualToZero_ShouldThrowArgumentException()
{
// Arrange
Expand All @@ -75,7 +75,7 @@ public void GetAvailableHours_WhenDurationOfDentalServiceIsEqualToZero_ShouldThr
act.Should().Throw<InvalidOperationException>();
}

[TestCase]
[Test]
public void GetAvailableHours_WhenNumberOfAvailableHoursIsZero_ShouldReturnsNull()
{
// Arrange
Expand All @@ -101,7 +101,7 @@ public void GetAvailableHours_WhenNumberOfAvailableHoursIsZero_ShouldReturnsNull
availableHours.Should().BeNull();
}

[TestCase]
[Test]
public void GetAvailableHours_WhenAppointmentDateIsEqualToTheCurrentDate_ShouldDiscardAvailableHoursThatAreLessThanTheCurrentTime()
{
// Arrange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public class HeroCardFactoryTests
{
[TestCase]
[Test]
public void CreateSchedulesHeroCard_WhenNumberOfAvailableHoursIsMultiplesOfFive_ShouldReturnsHeroCardsWithAvailableHours()
{
// Arrange
Expand Down Expand Up @@ -53,7 +53,7 @@ public void CreateSchedulesHeroCard_WhenNumberOfAvailableHoursIsMultiplesOfFive_
heroCards.Should().BeEquivalentTo(expectedHeroCards);
}

[TestCase]
[Test]
public void CreateSchedulesHeroCard_WhenNumberOfAvailableHoursIsNotMultiplesOfFive_ShouldReturnsHeroCardsWithAvailableHours()
{
// Arrange
Expand Down Expand Up @@ -100,7 +100,7 @@ public void CreateSchedulesHeroCard_WhenNumberOfAvailableHoursIsNotMultiplesOfFi
heroCards.Should().BeEquivalentTo(expectedHeroCards);
}

[TestCase]
[Test]
public void CreateSchedulesHeroCard_WhenNumberOfAvailableHoursIsLessThanFive_ShouldReturnsHeroCardsWithAvailableHours()
{
// Arrange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public class UserProfileFactoryTests
{
[TestCase]
[Test]
public void Create_WhenChannelIdStartsWithPrefix_ShouldReturnsUserProfileInstance()
{
// Arrange
Expand All @@ -18,7 +18,7 @@ public void Create_WhenChannelIdStartsWithPrefix_ShouldReturnsUserProfileInstanc
userProfile.FullName.Should().BeNull();
}

[TestCase]
[Test]
public void Create_WhenChannelIdHasNotPrefix_ShouldReturnsUserProfileInstance()
{
// Arrange
Expand Down Expand Up @@ -58,7 +58,7 @@ public void Create_WhenIdentifiersCouldNotBeExtractedSeparately_ShouldThrowInval
.WithMessage(expectedMessage);
}

[TestCase]
[Test]
public void Create_WhenChannelDataIsNull_ShouldReturnsFullNameWithNullValue()
{
// Arrange
Expand Down

0 comments on commit 2f464a7

Please sign in to comment.