Skip to content

Validation proposals #71

@ndrwrbgs

Description

@ndrwrbgs

Paths

make sure work here includes thoughts about how to handle the case where Directory method is called but a File exists at the path

  • DirectoryExists
  • DirectoryDoesNotExist
  • FileExists
  • FileDoesNotExist

Object

  • IsNull (though Is(null) probably suffices)
  • Implements/Extends
  • IsAnyOf (analogous to Is)
  • IsNotAnyOf

Number

  • IsApproximately(accuracy/within)
  • IsPositive
  • IsNegative
  • IsNotNegative

Collection

  • SizeIsGt/Lt/Gte/Lte
  • SizeIsNot
  • Contains
  • DoesNotContain
  • ^variation of above | HasNoNull
  • ContainsExactly(2, [optional] where: item => item == "foo")
  • IsEmpty (.SizeIs(0))
  • IsInAscendingOrder (IComparable only)
  • IsInDescendingOrder (IComparable only)

Dictionary

  • DoesNotContainKey
  • ContainsValue
  • DoesNotContainsValue

String

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions