Skip to content

Methods_T_CodeJam_DebugCode

Andrew Koryavchenko edited this page Jul 4, 2017 · 8 revisions

DebugCode Methods

The DebugCode type exposes the following members.

Methods

 

Name Description
Public method Static member AssertArgument(Boolean, String, String) Assertion for the argument value
Public method Static member AssertArgument(Boolean, String, String, Object[]) Assertion for the argument value
Public method Static member AssertState(Boolean, String) State assertion
Public method Static member AssertState(Boolean, String, Object[]) State assertion
Public method Static member BugIf(Boolean, String) Asserts if the given condition is satisfied.
Public method Static member BugIf(Boolean, String, Object[]) Asserts if the given condition is satisfied.
Public method Static member InRange(Double, String, Double, Double) Assertion for the argument in range
Public method Static member InRange(Int32, String, Int32, Int32) Assertion for the argument in range
Public method Static member InRange(T)(T, String, T, T) Assertion for the argument in range
Public method Static member ItemNotNull(T) Ensures that all items in arg != null
Public method Static member NotNull(T)(Nullable(T), String) Ensures that arg != null
Public method Static member NotNull(T)(T, String) Ensures that arg != null
Public method Static member NotNullAndItemNotNull(T) Ensures that arg and its all items != null
Public method Static member NotNullNorEmpty Ensures that arg is not null nor empty
Public method Static member NotNullNorWhiteSpace Ensures that arg is not null nor white space
Public method Static member ValidCount(Int32, String) Asserts if the passed value is not a valid count.
Public method Static member ValidCount(Int32, String, Int32) Asserts if the passed value is not a valid count.
Public method Static member ValidIndex(Int32, String) Assertion for index in range
Public method Static member ValidIndex(Int32, String, Int32) Assertion for index in range
Public method Static member ValidIndexAndCount Assertion for startIndex-count pair
Public method Static member ValidIndexPair Assertion for from-to index pair
  Back to Top

See Also

Reference

DebugCode Class
CodeJam Namespace

Clone this wiki locally