-
Notifications
You must be signed in to change notification settings - Fork 35
T_CodeJam_Code
Andrew Koryavchenko edited this page Jun 17, 2018
·
12 revisions
Assertions class.
Assertions class.
System.Object
CodeJam.Code
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static class Code
VB
Public NotInheritable Class Code
F#
[<AbstractClassAttribute>]
[<SealedAttribute>]
type Code = class end
The Code type exposes the following members.
Name | Description | |
---|---|---|
AssertArgument(Boolean, String, String) | Assertion for the argument value | |
AssertArgument(Boolean, String, String, Object[]) | Assertion for the argument value | |
AssertState(Boolean, String) | State assertion | |
AssertState(Boolean, String, Object[]) | State assertion | |
BugIf(Boolean, String) | Asserts if the given condition is satisfied. | |
BugIf(Boolean, String, Object[]) | Asserts if the given condition is satisfied. | |
DisposedIf(TDisposable)(Boolean, TDisposable) | Assertion for object disposal | |
DisposedIf(TDisposable)(Boolean, TDisposable, String) | Assertion for object disposal | |
DisposedIf(TDisposable)(Boolean, TDisposable, String, Object[]) | Assertion for object disposal | |
DisposedIfNull(TResource, TDisposable)(TResource, TDisposable) | Assertion for object disposal | |
DisposedIfNull(TResource, TDisposable)(TResource, TDisposable, String) | Assertion for object disposal | |
DisposedIfNull(TResource, TDisposable)(TResource, TDisposable, String, Object[]) | Assertion for object disposal | |
InRange(Double, String, Double, Double) | Assertion for the argument in range | |
InRange(Int32, String, Int32, Int32) | Assertion for the argument in range | |
InRange(T)(T, String, T, T) | Assertion for the argument in range | |
ItemNotNull(T) |
Ensures that all items in arg != null
|
|
NotNull(T)(Nullable(T), String) |
Ensures that arg != null
|
|
NotNull(T)(T, String) |
Ensures that arg != null
|
|
NotNullAndItemNotNull(T) |
Ensures that arg and its all items != null
|
|
NotNullNorEmpty | Ensures that arg is not null nor empty | |
NotNullNorWhiteSpace | Ensures that arg is not null nor white space | |
ValidCount(Int32, String) | Asserts if the passed value is not a valid count. | |
ValidCount(Int32, String, Int32) | Asserts if the passed value is not a valid count. | |
ValidIndex(Int32, String) | Assertion for index in range | |
ValidIndex(Int32, String, Int32) | Assertion for index in range | |
ValidIndexAndCount | Assertion for startIndex-count pair | |
ValidIndexPair | Assertion for from-to index pair |