Skip to content

Commit

Permalink
Refactor test methods in VirtualPetsSimulator.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
rpothin committed Apr 3, 2024
1 parent dae7c69 commit 81683fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void PetPoints_DecreaseOverTime()
Assert.True(initialLifePoints - lifePoints >= 20);
Assert.True(initialHappinessPoints - happinessPoints >= 20);
}
/*

/// <summary>
/// Tests the feeding of a pet entity.
/// </summary>
Expand Down Expand Up @@ -202,7 +202,7 @@ public void FeedPet_ReachingInitialLifePoints()
// Assert
Assert.True(PetHelper.ArePetLifePointsCorrectlyUpdatedAfterFeedingActivity(_serviceClient, _petId, initialLifePoints, selectedFoodQuantity));

Check failure on line 203 in src/Dataverse.API.Testing/VirtualPetSimulator.Testing/VirtualPetsSimulator.cs

View workflow job for this annotation

GitHub Actions / Dataverse API Testing

Dataverse.API.Testing.DataverseAPITests ► FeedPet_ReachingInitialLifePoints

Failed test found in: src/Dataverse.API.Testing/VirtualPetSimulator.Testing/TestResults/test-results.trx Error: Assert.True() Failure Expected: True Actual: False
Raw output
Assert.True() Failure
Expected: True
Actual:   False
   at Dataverse.API.Testing.DataverseAPITests.FeedPet_ReachingInitialLifePoints() in /home/runner/work/PowerPlatform-DevEx-With-GitHub-Workshop/PowerPlatform-DevEx-With-GitHub-Workshop/src/Dataverse.API.Testing/VirtualPetSimulator.Testing/VirtualPetsSimulator.cs:line 203
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
}
*/

/// <summary>
/// Disposes the resources used by the <see cref="DataverseAPITests"/> class.
/// </summary>
Expand Down

0 comments on commit 81683fc

Please sign in to comment.