Table of Contents

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

source IAssertionSource<long>
other long
modulus long
otherExpression string
modulusExpression string

Returns

Long_IsCongruentTo_Long_Long_Assertion

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

source IAssertionSource<long>
other long
otherExpression string

Returns

Long_IsCoprimeWith_Long_Assertion

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

source IAssertionSource<long>
divisor long
divisorExpression string

Returns

Long_IsDivisibleBy_Long_Assertion

IsPerfectSquare(IAssertionSource<long>)

Generated extension method for IsPerfectSquare

public static Long_IsPerfectSquare_Assertion IsPerfectSquare(this IAssertionSource<long> source)

Parameters

source IAssertionSource<long>

Returns

Long_IsPerfectSquare_Assertion

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

source IAssertionSource<long>
baseValue long
baseValueExpression string

Returns

Long_IsPowerOf_Long_Assertion

IsPrime(IAssertionSource<long>)

Generated extension method for IsPrime

public static Long_IsPrime_Assertion IsPrime(this IAssertionSource<long> source)

Parameters

source IAssertionSource<long>

Returns

Long_IsPrime_Assertion