####This is a general-purpose micro check library for back-end development.
This library is a port of is.js library by Aras Atasaygin.
####Usage:
Nuget:
will be nuget link with first release
####Contributing:
Thanks for considering to contribute Is.Net
- Be sure you've added tests if you are sending a new feature.
####Checks if the given value is integer.
Is.Integer(5.0M);
=> true
Is.Integer(5.1M);
=> false
Is.Integer(-3);
=> true
Is.Integer(0);
=> true
####Checks if the given value is integer.
Is.Integer("1");
=> true
Is.Integer("5.1M");
=> false
Is.Integer("-3");
=> true
Is.Integer("0");
=> true
Is.Integer("a");
=> false
####Checks if the given value is even.
Is.Even(2);
=> true
Is.Even(0);
=> true
Is.Even(-3);
=> false
Is.Even(3);
=> false
####Checks if the given value is odd.
Is.Odd(3);
=> true
Is.Odd(-3);
=> true
Is.Odd(2);
=> false
Is.Odd(0);
=> false
####Checks if the given value is above the other.
Is.Above(1, 0);
=> true
Is.Above(-1, 0);
=> false
Is.Above(0, 0);
=> false
####Checks if the given value is under the other.
Is.Under(-1, 0);
=> true
Is.Under(1, 0);
=> false
Is.Under(0, 0);
=> false
####Checks if the given value is between the others.
Is.Between(1, 0, 2);
=> true
Is.Between(1, 2, 3);
=> false
Is.Between(2, 1, 2);
=> false
Is.Between(0, 0, 0);
=> false
####Checks if the given value is finite.
Is.Finite(42);
=> true
Is.Finite(double.PositiveInfinity);
=> false
Is.Finite(double.NegativeInfinity);
=> false
####Checks if the given value is a prime number.
Is.Prime(2);
=> true
Is.Prime(13);
=> true
Is.Prime(37);
=> true
Is.Prime(1);
=> false
Is.Prime(0);
=> false