- [Deprecated]
ShouldThrowArgumentException
is deprecated. UseShould().Throw<ArgumentException>
instead. - [Deprecated]
ShouldThrowArgumentNullException
is deprecated. UseShould().Throw<ArgumentNullException>
instead. - [Deprecated]
ShouldThrowArgumentOutOfRangeException
is deprecated. UseShould().Throw<ArgumentOutOfRangeException>
instead.
AssertAdministrator
is not available in .NET Standard.Random
property added to provide access to an instance of Random for use in testing. DetailsUser
has been modified to returnIPrincipal
instead ofWindowsPrincipal
. 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.