Skip to content

Commit

Permalink
Fixed tests that did not follow AAA test layout. Added empty lines at…
Browse files Browse the repository at this point in the history
… the end of the files
  • Loading branch information
thestbar committed Oct 24, 2023
1 parent da02845 commit f365612
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ public void Ctor_WhenInvokedWithNoParam_CorrectlySetsMessage()
[Fact]
public void Ctor_WhenInvokedWithSingleMessageParam_CorrectlySetsMesage()
{
// Act
// Arrange
var exceptionMessage = "test-message";

// Act
var exception = new StringNullOrEmptyException(exceptionMessage);

// Assert
Expand All @@ -53,4 +55,4 @@ public void Ctor_WhenInvokedWithMessageAndInnerException_ThrowsException()
deviceException.Message.Should().Be(exceptionMessage);
}
#endregion
}
}
6 changes: 4 additions & 2 deletions Testing/CASLTests/Exceptions/UnknownPlatformExceptionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ public void Ctor_WhenInvokedWithNoParam_CorrectlySetsMessage()
[Fact]
public void Ctor_WhenInvokedWithSingleMessageParam_CorrectlySetsMesage()
{
// Act
// Arrange
var exceptionMessage = "test-message";

// Act
var exception = new UnknownPlatformException(exceptionMessage);

// Assert
Expand All @@ -53,4 +55,4 @@ public void Ctor_WhenInvokedWithMessageAndInnerException_ThrowsException()
deviceException.Message.Should().Be(exceptionMessage);
}
#endregion
}
}

0 comments on commit f365612

Please sign in to comment.