Skip to content

Assert.Less

jnm2 edited this page Jun 14, 2017 · 6 revisions

Assert.Less tests whether one object is less than than another. Contrary to the normal order of Asserts, these methods are designed to be read in the "natural" English-language or mathematical order. Thus Assert.Less(x, y) asserts that x is less than y (x < y).

Assert.Less(int arg1, int arg2);
Assert.Less(int arg1, int arg2, string message, params object[] parms);

Assert.Less(uint arg1, uint arg2);
Assert.Less(uint arg1, uint arg2, string message, params object[] parms);

Assert.Less(long arg1, long arg2);
Assert.Less(long arg1, long arg2, string message, params object[] parms);

Assert.Less(ulong arg1, ulong arg2);
Assert.Less(ulong arg1, ulong arg2, string message, params object[] parms);

Assert.Less(decimal arg1, decimal arg2);
Assert.Less(decimal arg1, decimal arg2,
            string message, params object[] parms);

Assert.Less(double arg1, double arg2);
Assert.Less(double arg1, double arg2,
            string message, params object[] parms);

Assert.Less(float arg1, float arg2);
Assert.Less(float arg1, float arg2,
            string message, params object[] parms);

Assert.Less(IComparable arg1, IComparable arg2);
Assert.Less(IComparable arg1, IComparable arg2,
            string message, params object[] parms);

See also...

Clone this wiki locally