Skip to content

Commit

Permalink
Fixed missing TearDown on unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineatrhea committed Sep 21, 2023
1 parent 931713c commit e06cc88
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,12 @@ public void SetUp()
this.session.Setup(x => x.ActivePerson).Returns(this.person);
}

[TearDown]
public void Teardown()
{
this.context.CleanContext();
}

[Test]
public async Task VerifyOnInitialized()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,13 @@ public void SetUp()
this.session.Setup(x => x.ActivePerson).Returns(this.person);
}


[TearDown]
public void Teardown()
{
this.context.CleanContext();
}

[Test]
public async Task VerifyOnInitialized()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ public void SetUp()
};
}

[TearDown]
public void Teardown()
{
this.context.CleanContext();
}

[Test]
public void VerifyComponent()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,12 @@ public void SetUp()
this.session.Setup(x => x.ActivePerson).Returns(this.person);
}

[TearDown]
public void Teardown()
{
this.context.CleanContext();
}

[Test]
public async Task VerifyActivatingPerson()
{
Expand Down

0 comments on commit e06cc88

Please sign in to comment.