編集

次の方法で共有


TestUtilities.AssertGreaterOrEqual Method

Definition

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.

Applies to