MoreAsserts.AssertNotEqual Method

Definition

Overloads

AssertNotEqual(Object, Object)

Variant of #assertNotEqual(String,Object,Object) using a generic message.

AssertNotEqual(String, Object, Object)

Asserts that actual is not equal unexpected, according to both == and Object#equals.

AssertNotEqual(Object, Object)

Variant of #assertNotEqual(String,Object,Object) using a generic message.

[Android.Runtime.Register("assertNotEqual", "(Ljava/lang/Object;Ljava/lang/Object;)V", "")]
public static void AssertNotEqual (Java.Lang.Object? unexpected, Java.Lang.Object? actual);
[<Android.Runtime.Register("assertNotEqual", "(Ljava/lang/Object;Ljava/lang/Object;)V", "")>]
static member AssertNotEqual : Java.Lang.Object * Java.Lang.Object -> unit

Parameters

unexpected
Object
actual
Object
Attributes

Remarks

Variant of #assertNotEqual(String,Object,Object) using a generic message.

Java documentation for android.test.MoreAsserts.assertNotEqual(java.lang.Object, java.lang.Object).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

AssertNotEqual(String, Object, Object)

Asserts that actual is not equal unexpected, according to both == and Object#equals.

[Android.Runtime.Register("assertNotEqual", "(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V", "")]
public static void AssertNotEqual (string? message, Java.Lang.Object? unexpected, Java.Lang.Object? actual);
[<Android.Runtime.Register("assertNotEqual", "(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V", "")>]
static member AssertNotEqual : string * Java.Lang.Object * Java.Lang.Object -> unit

Parameters

message
String
unexpected
Object
actual
Object
Attributes

Remarks

Asserts that actual is not equal unexpected, according to both == and Object#equals.

Java documentation for android.test.MoreAsserts.assertNotEqual(java.lang.String, java.lang.Object, java.lang.Object).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to