Class NumberTheoryAssertions
- Namespace
- TUnit.Assertions.Extensions
- Assembly
- MathAssertions.TUnit.dll
public static class NumberTheoryAssertions
- Inheritance
-
NumberTheoryAssertions
- Inherited Members
Methods
IsCongruentTo(IAssertionSource<long>, long, long, string?, string?)
Generated extension method for IsCongruentTo
public static Long_IsCongruentTo_Long_Long_Assertion IsCongruentTo(this IAssertionSource<long> source, long other, long modulus, string? otherExpression = null, string? modulusExpression = null)
Parameters
sourceIAssertionSource<long>otherlongmoduluslongotherExpressionstringmodulusExpressionstring
Returns
IsCoprimeWith(IAssertionSource<long>, long, string?)
Generated extension method for IsCoprimeWith
public static Long_IsCoprimeWith_Long_Assertion IsCoprimeWith(this IAssertionSource<long> source, long other, string? otherExpression = null)
Parameters
Returns
IsDivisibleBy(IAssertionSource<long>, long, string?)
Generated extension method for IsDivisibleBy
public static Long_IsDivisibleBy_Long_Assertion IsDivisibleBy(this IAssertionSource<long> source, long divisor, string? divisorExpression = null)
Parameters
Returns
IsPerfectSquare(IAssertionSource<long>)
Generated extension method for IsPerfectSquare
public static Long_IsPerfectSquare_Assertion IsPerfectSquare(this IAssertionSource<long> source)
Parameters
sourceIAssertionSource<long>
Returns
IsPowerOf(IAssertionSource<long>, long, string?)
Generated extension method for IsPowerOf
public static Long_IsPowerOf_Long_Assertion IsPowerOf(this IAssertionSource<long> source, long baseValue, string? baseValueExpression = null)
Parameters
Returns
IsPrime(IAssertionSource<long>)
Generated extension method for IsPrime
public static Long_IsPrime_Assertion IsPrime(this IAssertionSource<long> source)
Parameters
sourceIAssertionSource<long>