Skip to content

Commit

Permalink
Fix typo in CuddlePet_ReachingInitialHappinessPoints test method
Browse files Browse the repository at this point in the history
  • Loading branch information
rpothin committed Apr 4, 2024
1 parent 732d4c2 commit 77add40
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public void CuddlePet_NotReachingInitialHappinessPoints()
/// The test waits for 20 seconds and validates that the happiness points have increased without going over the initial happiness points value.
/// </remarks>
[Fact]
public void CuddlePet_ReacingInitialHappinessPoints()
public void CuddlePet_ReachingInitialHappinessPoints()
{
// Update the happiness points of the pet to 99990
PetHelper.UpdatePetHappinessPoints(_serviceClient, _petId, 99990);
Expand All @@ -251,6 +251,8 @@ public void CuddlePet_ReacingInitialHappinessPoints()
var petBeforeCuddling = _serviceClient.Retrieve("rpo_pet", _petId, new ColumnSet("rpo_happinesspoints"));
int initialHappinessPoints = petBeforeCuddling.GetAttributeValue<int>("rpo_happinesspoints");

Console.WriteLine($"Initial happiness points: {initialHappinessPoints}");

// Create a cuddling activity
var cuddlingActivityId = PetHelper.CreateCuddleActivity(_serviceClient, _petId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ public static bool ArePetHapppinessPointsCorrectlyUpdatedAfterCuddleActivity(Ser
// Get the happiness points
var happinessPoints = pet.GetAttributeValue<int>("rpo_happinesspoints");

Console.WriteLine("happinessPointsBeforeCuddle: " + happinessPointsBeforeCuddle);
Console.WriteLine("happinessPoints: " + happinessPoints);
Console.WriteLine("initialHappinessPoints: " + _initialHappinessPoints);
Console.WriteLine("cuddleHappinessPoints: " + _cuddleHappinessPoints);
Console.WriteLine("happinessPointsBeforeCuddle + _cuddleHappinessPoints: " + (happinessPointsBeforeCuddle + _cuddleHappinessPoints));

// Check if the happiness points are correctly updated
if (happinessPointsBeforeCuddle + _cuddleHappinessPoints >= _initialHappinessPoints) {
return happinessPoints == _initialHappinessPoints;
Expand Down

0 comments on commit 77add40

Please sign in to comment.