Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1.2 KB

kraken-unittesting.md

File metadata and controls

20 lines (13 loc) · 1.2 KB

Kraken Unit Testing 6.0

Version Release Notes

P3Net.Kraken.UnitTesting Namespace

AssertionExtensions Class

  • [Deprecated] ShouldThrowArgumentException is deprecated. Use Should().Throw<ArgumentException> instead.
  • [Deprecated] ShouldThrowArgumentNullException is deprecated. Use Should().Throw<ArgumentNullException> instead.
  • [Deprecated] ShouldThrowArgumentOutOfRangeException is deprecated. Use Should().Throw<ArgumentOutOfRangeException> instead.

UnitTest Class

  • AssertAdministrator is not available in .NET Standard.
  • Random property added to provide access to an instance of Random for use in testing. Details
  • User has been modified to return IPrincipal instead of WindowsPrincipal. For the .NET Framework it continues to behave as before. For .NET Standard it simply returns Thread.CurrentPrincipal.
  • IsUserAdministrator is not available in .NET Standard.