TestUtilities.AssertGreaterOrEqual Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AssertGreaterOrEqual(Single, Single, Single) |
Equivalent to NUnit.Framework.Assert.GreaterOrEqual, except this also applies a slight tolerance on the equality check. |
AssertGreaterOrEqual(Single, Single, String, Single) |
Equivalent to NUnit.Framework.Assert.GreaterOrEqual, except this also applies a slight tolerance on the equality check. |
AssertGreaterOrEqual(Single, Single, Single)
Equivalent to NUnit.Framework.Assert.GreaterOrEqual, except this also applies a slight tolerance on the equality check.
public static void AssertGreaterOrEqual (float observed, float expected, float tolerance = 0.01);
static member AssertGreaterOrEqual : single * single * single -> unit
Public Shared Sub AssertGreaterOrEqual (observed As Single, expected As Single, Optional tolerance As Single = 0.01)
Parameters
- observed
- Single
- expected
- Single
- tolerance
- Single
Remarks
This allows for things like GreaterThanOrEqual(1.999999999, 2.0) to still pass.
Applies to
AssertGreaterOrEqual(Single, Single, String, Single)
Equivalent to NUnit.Framework.Assert.GreaterOrEqual, except this also applies a slight tolerance on the equality check.
public static void AssertGreaterOrEqual (float observed, float expected, string message, float tolerance = 0.01);
static member AssertGreaterOrEqual : single * single * string * single -> unit
Public Shared Sub AssertGreaterOrEqual (observed As Single, expected As Single, message As String, Optional tolerance As Single = 0.01)
Parameters
- observed
- Single
- expected
- Single
- message
- String
- tolerance
- Single
Remarks
This allows for things like GreaterThanOrEqual(1.999999999, 2.0) to still pass.