Skip to content

Commit

Permalink
chore: merge feat/100-beliefset-necessities into feat/100-beliefset-n…
Browse files Browse the repository at this point in the history
…ecessities
  • Loading branch information
JensSteenmetz committed Mar 21, 2024
2 parents 87c11cd + 768cffd commit 9502434
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Aplib.Tests/Core/Belief/BeliefsetTests.cs
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
using Aplib.Core.Belief;

namespace Aplib.Tests.Core.Belief;
public class BeliefsetTests
public class BeliefSetTests
{
/// <summary>
/// Given a Beliefset instance with multiple beliefs,
/// Given a BeliefSet instance with multiple beliefs,
/// When UpdateBeliefs is called,
/// Then all beliefs are updated.
/// </summary>
[Fact]
public void UpdateBeliefs_Called_UpdatesAllBeliefs()
{
// Arrange
TestBeliefSet beliefset = new();
TestBeliefSet beliefSet = new();

// Act
beliefset.UpdateBeliefs();
beliefSet.UpdateBeliefs();

// Assert
Assert.True(beliefset.Belief1.Updated);
Assert.True(beliefset.Belief2.Updated);
Assert.True(beliefSet.Belief1.Updated);
Assert.True(beliefSet.Belief2.Updated);
}

private class TestBeliefSet : BeliefSet
Expand Down

0 comments on commit 9502434

Please sign in to comment.