Assert.AreNotSequenceEqual Method

Definition

Overloads

Name Description
AreNotSequenceEqual(IEnumerable, IEnumerable, IEqualityComparer, SequenceOrder, String, String, String)

Tests whether two sequences differ using the specified comparer and order semantics and throws an exception if they do not.

AreNotSequenceEqual(IEnumerable, IEnumerable, IEqualityComparer, String, String, String)

Tests whether two sequences differ in the same order using the specified comparer and throws an exception if they do not.

AreNotSequenceEqual(IEnumerable, IEnumerable, String, String, String)

Tests whether two sequences differ in the same order and throws an exception if they do not.

AreNotSequenceEqual(IEnumerable, IEnumerable, SequenceOrder, String, String, String)

Tests whether two sequences differ using the specified order semantics and throws an exception if they do not.

AreNotSequenceEqual<T>(IEnumerable<T>, IEnumerable<T>, String, String, String)

Tests whether two sequences differ in the same order and throws an exception if they do not.

AreNotSequenceEqual<T>(IEnumerable<T>, IEnumerable<T>, SequenceOrder, String, String, String)

Tests whether two sequences differ using the specified order semantics and throws an exception if they do not.

AreNotSequenceEqual<T>(IEnumerable<T>, IEnumerable<T>, IEqualityComparer<T>, String, String, String)

Tests whether two sequences differ in the same order using the specified comparer and throws an exception if they do not.

AreNotSequenceEqual<T>(IEnumerable<T>, IEnumerable<T>, IEqualityComparer<T>, SequenceOrder, String, String, String)

Tests whether two sequences differ using the specified comparer and order semantics and throws an exception if they do not.

AreNotSequenceEqual(IEnumerable, IEnumerable, IEqualityComparer, SequenceOrder, String, String, String)

Source:
Assert.AreNotSequenceEqual.cs

Tests whether two sequences differ using the specified comparer and order semantics and throws an exception if they do not.

public static void AreNotSequenceEqual(System.Collections.IEnumerable? notExpected, System.Collections.IEnumerable? actual, System.Collections.IEqualityComparer? comparer, Microsoft.VisualStudio.TestTools.UnitTesting.SequenceOrder order, string? message = "", string notExpectedExpression = "", string actualExpression = "");
static member AreNotSequenceEqual : System.Collections.IEnumerable * System.Collections.IEnumerable * System.Collections.IEqualityComparer * Microsoft.VisualStudio.TestTools.UnitTesting.SequenceOrder * string * string * string -> unit
Public Shared Sub AreNotSequenceEqual (notExpected As IEnumerable, actual As IEnumerable, comparer As IEqualityComparer, order As SequenceOrder, Optional message As String = "", Optional notExpectedExpression As String = "", Optional actualExpression As String = "")

Parameters

notExpected
IEnumerable

The sequence not expected to equal actual.

actual
IEnumerable

The sequence produced by the code under test.

comparer
IEqualityComparer

The equality comparer to use when comparing elements, or null to use the default comparer.

order
SequenceOrder

Specifies whether elements must appear in the same order or in any order.

message
String

The message to include in the exception when the sequences are equal.

notExpectedExpression
String

The syntactic expression of notExpected as given by the compiler via caller argument expression.

actualExpression
String

The syntactic expression of actual as given by the compiler via caller argument expression.

Applies to

AreNotSequenceEqual(IEnumerable, IEnumerable, IEqualityComparer, String, String, String)

Source:
Assert.AreNotSequenceEqual.cs

Tests whether two sequences differ in the same order using the specified comparer and throws an exception if they do not.

public static void AreNotSequenceEqual(System.Collections.IEnumerable? notExpected, System.Collections.IEnumerable? actual, System.Collections.IEqualityComparer? comparer, string? message = "", string notExpectedExpression = "", string actualExpression = "");
static member AreNotSequenceEqual : System.Collections.IEnumerable * System.Collections.IEnumerable * System.Collections.IEqualityComparer * string * string * string -> unit
Public Shared Sub AreNotSequenceEqual (notExpected As IEnumerable, actual As IEnumerable, comparer As IEqualityComparer, Optional message As String = "", Optional notExpectedExpression As String = "", Optional actualExpression As String = "")

Parameters

notExpected
IEnumerable

The sequence not expected to equal actual.

actual
IEnumerable

The sequence produced by the code under test.

comparer
IEqualityComparer

The equality comparer to use when comparing elements, or null to use the default comparer.

message
String

The message to include in the exception when the sequences are equal.

notExpectedExpression
String

The syntactic expression of notExpected as given by the compiler via caller argument expression.

actualExpression
String

The syntactic expression of actual as given by the compiler via caller argument expression.

Applies to

AreNotSequenceEqual(IEnumerable, IEnumerable, String, String, String)

Source:
Assert.AreNotSequenceEqual.cs

Tests whether two sequences differ in the same order and throws an exception if they do not.

public static void AreNotSequenceEqual(System.Collections.IEnumerable? notExpected, System.Collections.IEnumerable? actual, string? message = "", string notExpectedExpression = "", string actualExpression = "");
static member AreNotSequenceEqual : System.Collections.IEnumerable * System.Collections.IEnumerable * string * string * string -> unit
Public Shared Sub AreNotSequenceEqual (notExpected As IEnumerable, actual As IEnumerable, Optional message As String = "", Optional notExpectedExpression As String = "", Optional actualExpression As String = "")

Parameters

notExpected
IEnumerable

The sequence not expected to equal actual.

actual
IEnumerable

The sequence produced by the code under test.

message
String

The message to include in the exception when the sequences are equal.

notExpectedExpression
String

The syntactic expression of notExpected as given by the compiler via caller argument expression.

actualExpression
String

The syntactic expression of actual as given by the compiler via caller argument expression.

Applies to

AreNotSequenceEqual(IEnumerable, IEnumerable, SequenceOrder, String, String, String)

Source:
Assert.AreNotSequenceEqual.cs

Tests whether two sequences differ using the specified order semantics and throws an exception if they do not.

public static void AreNotSequenceEqual(System.Collections.IEnumerable? notExpected, System.Collections.IEnumerable? actual, Microsoft.VisualStudio.TestTools.UnitTesting.SequenceOrder order, string? message = "", string notExpectedExpression = "", string actualExpression = "");
static member AreNotSequenceEqual : System.Collections.IEnumerable * System.Collections.IEnumerable * Microsoft.VisualStudio.TestTools.UnitTesting.SequenceOrder * string * string * string -> unit
Public Shared Sub AreNotSequenceEqual (notExpected As IEnumerable, actual As IEnumerable, order As SequenceOrder, Optional message As String = "", Optional notExpectedExpression As String = "", Optional actualExpression As String = "")

Parameters

notExpected
IEnumerable

The sequence not expected to equal actual.

actual
IEnumerable

The sequence produced by the code under test.

order
SequenceOrder

Specifies whether elements must appear in the same order or in any order.

message
String

The message to include in the exception when the sequences are equal.

notExpectedExpression
String

The syntactic expression of notExpected as given by the compiler via caller argument expression.

actualExpression
String

The syntactic expression of actual as given by the compiler via caller argument expression.

Applies to

AreNotSequenceEqual<T>(IEnumerable<T>, IEnumerable<T>, String, String, String)

Source:
Assert.AreNotSequenceEqual.cs

Tests whether two sequences differ in the same order and throws an exception if they do not.

public static void AreNotSequenceEqual<T>(System.Collections.Generic.IEnumerable<T>? notExpected, System.Collections.Generic.IEnumerable<T>? actual, string? message = "", string notExpectedExpression = "", string actualExpression = "");
static member AreNotSequenceEqual : seq<'T> * seq<'T> * string * string * string -> unit
Public Shared Sub AreNotSequenceEqual(Of T) (notExpected As IEnumerable(Of T), actual As IEnumerable(Of T), Optional message As String = "", Optional notExpectedExpression As String = "", Optional actualExpression As String = "")

Type Parameters

T

The type of sequence elements.

Parameters

notExpected
IEnumerable<T>

The sequence not expected to equal actual.

actual
IEnumerable<T>

The sequence produced by the code under test.

message
String

The message to include in the exception when the sequences are equal.

notExpectedExpression
String

The syntactic expression of notExpected as given by the compiler via caller argument expression.

actualExpression
String

The syntactic expression of actual as given by the compiler via caller argument expression.

Applies to

AreNotSequenceEqual<T>(IEnumerable<T>, IEnumerable<T>, SequenceOrder, String, String, String)

Source:
Assert.AreNotSequenceEqual.cs

Tests whether two sequences differ using the specified order semantics and throws an exception if they do not.

public static void AreNotSequenceEqual<T>(System.Collections.Generic.IEnumerable<T>? notExpected, System.Collections.Generic.IEnumerable<T>? actual, Microsoft.VisualStudio.TestTools.UnitTesting.SequenceOrder order, string? message = "", string notExpectedExpression = "", string actualExpression = "");
static member AreNotSequenceEqual : seq<'T> * seq<'T> * Microsoft.VisualStudio.TestTools.UnitTesting.SequenceOrder * string * string * string -> unit
Public Shared Sub AreNotSequenceEqual(Of T) (notExpected As IEnumerable(Of T), actual As IEnumerable(Of T), order As SequenceOrder, Optional message As String = "", Optional notExpectedExpression As String = "", Optional actualExpression As String = "")

Type Parameters

T

The type of sequence elements.

Parameters

notExpected
IEnumerable<T>

The sequence not expected to equal actual.

actual
IEnumerable<T>

The sequence produced by the code under test.

order
SequenceOrder

Specifies whether elements must appear in the same order or in any order.

message
String

The message to include in the exception when the sequences are equal.

notExpectedExpression
String

The syntactic expression of notExpected as given by the compiler via caller argument expression.

actualExpression
String

The syntactic expression of actual as given by the compiler via caller argument expression.

Applies to

AreNotSequenceEqual<T>(IEnumerable<T>, IEnumerable<T>, IEqualityComparer<T>, String, String, String)

Source:
Assert.AreNotSequenceEqual.cs

Tests whether two sequences differ in the same order using the specified comparer and throws an exception if they do not.

public static void AreNotSequenceEqual<T>(System.Collections.Generic.IEnumerable<T>? notExpected, System.Collections.Generic.IEnumerable<T>? actual, System.Collections.Generic.IEqualityComparer<T>? comparer, string? message = "", string notExpectedExpression = "", string actualExpression = "");
static member AreNotSequenceEqual : seq<'T> * seq<'T> * System.Collections.Generic.IEqualityComparer<'T> * string * string * string -> unit
Public Shared Sub AreNotSequenceEqual(Of T) (notExpected As IEnumerable(Of T), actual As IEnumerable(Of T), comparer As IEqualityComparer(Of T), Optional message As String = "", Optional notExpectedExpression As String = "", Optional actualExpression As String = "")

Type Parameters

T

The type of sequence elements.

Parameters

notExpected
IEnumerable<T>

The sequence not expected to equal actual.

actual
IEnumerable<T>

The sequence produced by the code under test.

comparer
IEqualityComparer<T>

The equality comparer to use when comparing elements, or null to use the default comparer.

message
String

The message to include in the exception when the sequences are equal.

notExpectedExpression
String

The syntactic expression of notExpected as given by the compiler via caller argument expression.

actualExpression
String

The syntactic expression of actual as given by the compiler via caller argument expression.

Applies to

AreNotSequenceEqual<T>(IEnumerable<T>, IEnumerable<T>, IEqualityComparer<T>, SequenceOrder, String, String, String)

Source:
Assert.AreNotSequenceEqual.cs

Tests whether two sequences differ using the specified comparer and order semantics and throws an exception if they do not.

public static void AreNotSequenceEqual<T>(System.Collections.Generic.IEnumerable<T>? notExpected, System.Collections.Generic.IEnumerable<T>? actual, System.Collections.Generic.IEqualityComparer<T>? comparer, Microsoft.VisualStudio.TestTools.UnitTesting.SequenceOrder order, string? message = "", string notExpectedExpression = "", string actualExpression = "");
static member AreNotSequenceEqual : seq<'T> * seq<'T> * System.Collections.Generic.IEqualityComparer<'T> * Microsoft.VisualStudio.TestTools.UnitTesting.SequenceOrder * string * string * string -> unit
Public Shared Sub AreNotSequenceEqual(Of T) (notExpected As IEnumerable(Of T), actual As IEnumerable(Of T), comparer As IEqualityComparer(Of T), order As SequenceOrder, Optional message As String = "", Optional notExpectedExpression As String = "", Optional actualExpression As String = "")

Type Parameters

T

The type of sequence elements.

Parameters

notExpected
IEnumerable<T>

The sequence not expected to equal actual.

actual
IEnumerable<T>

The sequence produced by the code under test.

comparer
IEqualityComparer<T>

The equality comparer to use when comparing elements, or null to use the default comparer.

order
SequenceOrder

Specifies whether elements must appear in the same order or in any order.

message
String

The message to include in the exception when the sequences are equal.

notExpectedExpression
String

The syntactic expression of notExpected as given by the compiler via caller argument expression.

actualExpression
String

The syntactic expression of actual as given by the compiler via caller argument expression.

Applies to