Skip to content
#

guard

Here are 148 public repositories matching this topic...

safakgur
safakgur commented Jan 9, 2020

Split from #40

Default DateTime.Compare ignores the Kind property. We should:

  • Add a new guard, KindSpecified, to require a DateTime argument to have kind that is either Local or Utc, so people can force callers to think about the source of their time values and specify the kinds explicitly.
  • Add non-generic overloads to Equal, NotEqual, Min, Max and InRange that acc
ljhca
ljhca commented Mar 21, 2019

When the .NotDefault() Precondition fails, the exception message is:

System.ArgumentException : Bookedtime
"Parameter name: Value must have default value!"

Why would we say that it must have a 'default value' when the condition is that it is NOT the default value?

I think something like:
"Parameter name: Must have a value other than the system default"

bug

Improve this page

Add a description, image, and links to the guard topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the guard topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.