Skip to content

Commit

Permalink
Update UnitTest1.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco authored Aug 4, 2024
1 parent 4aa76d1 commit 546c6ba
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Tests/POCTemplate.Tests/UnitTest1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,27 @@ namespace POCTemplate.Tests;

public class UnitTest1
{
/// <summary>
/// Tests the functionality of a specific feature or method.
/// </summary>
/// <remarks>
/// This test method, named <c>Test1</c>, is designed to verify that a boolean value evaluates to the expected result.
/// It uses the Arrange-Act-Assert pattern, which is a common practice in unit testing.
/// In the Arrange phase, the expected value is set to <c>true</c>.
/// In the Act phase, a boolean variable <c>value</c> is assigned the value <c>true</c> as well.
/// Finally, in the Assert phase, the test checks if <c>value</c> matches the expected value using Fluent Assertions.
/// This ensures that the functionality being tested behaves as intended.
/// </remarks>
[Fact]
public void Test1()
{
// Arrange
const bool expected = true;

// Act
var value = true;

// Assert
expected.Should().BeTrue();
value.Should().Be(expected);
}
}

0 comments on commit 546c6ba

Please sign in to comment.