Jazyk

Assert.IsEmpty Metoda

Definice

Přetížení

Name Description
IsEmpty(IEnumerable)

Testuje, že kolekce je prázdná.

IsEmpty(IEnumerable, String)

Testuje, že kolekce je prázdná.

IsEmpty(IEnumerable, String, String)

Testuje, že kolekce je prázdná.

IsEmpty<T>(Span<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)

Testuje, že rozsah je prázdný.

IsEmpty<T>(Span<T>, String, String)

Testuje, že rozsah je prázdný.

IsEmpty<T>(ReadOnlySpan<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)

Testuje, že rozsah je prázdný.

IsEmpty<T>(ReadOnlyMemory<T>, String, String)

Testuje, že je paměť prázdná.

IsEmpty<T>(ReadOnlyMemory<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)

Testuje, že je paměť prázdná.

IsEmpty<T>(Memory<T>, String, String)

Testuje, že je paměť prázdná.

IsEmpty<T>(ReadOnlySpan<T>, String, String)

Testuje, že rozsah je prázdný.

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

Testuje, že kolekce je prázdná.

IsEmpty<T>(IEnumerable<T>, String, Object[])

Testuje, že kolekce je prázdná.

IsEmpty<T>(IEnumerable<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)

Testuje, že kolekce je prázdná.

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

Testuje, že kolekce je prázdná.

IsEmpty<T>(Memory<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)

Testuje, že je paměť prázdná.

IsEmpty<T>(IEnumerable<T>, Assert.AssertCountInterpolatedStringHandler<T>)

Testuje, že kolekce je prázdná.

IsEmpty<T>(IEnumerable<T>)

Testuje, že kolekce je prázdná.

IsEmpty(IEnumerable)

Zdroj:
Assert.Count.cs

Testuje, že kolekce je prázdná.

public static void IsEmpty(System.Collections.IEnumerable collection);
static member IsEmpty : System.Collections.IEnumerable -> unit
Public Shared Sub IsEmpty (collection As IEnumerable)

Parametry

collection
IEnumerable

Kolekce

Platí pro

IsEmpty(IEnumerable, String)

Zdroj:
Assert.Count.cs

Testuje, že kolekce je prázdná.

public static void IsEmpty(System.Collections.IEnumerable collection, string? message);
static member IsEmpty : System.Collections.IEnumerable * string -> unit
Public Shared Sub IsEmpty (collection As IEnumerable, message As String)

Parametry

collection
IEnumerable

Kolekce

message
String

Formát zprávy, který se má zobrazit, když kontrolní výraz selže.

Platí pro

IsEmpty(IEnumerable, String, String)

Zdroj:
Assert.Count.cs
Zdroj:
Assert.Count.cs
Zdroj:
Assert.Count.cs
Zdroj:
Assert.IsEmpty.cs

Testuje, že kolekce je prázdná.

public static void IsEmpty(System.Collections.IEnumerable collection, string? message = "", string collectionExpression = "");
static member IsEmpty : System.Collections.IEnumerable * string * string -> unit
Public Shared Sub IsEmpty (collection As IEnumerable, Optional message As String = "", Optional collectionExpression As String = "")

Parametry

collection
IEnumerable

Kolekce

message
String

Zpráva, která se má zobrazit, když kontrolní výraz selže.

collectionExpression
String

Syntaktický výraz kolekce zadaný kompilátorem prostřednictvím výrazu argumentu volajícího. Uživatelé by neměli předávat hodnotu pro tento parametr.

Platí pro

IsEmpty<T>(Span<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)

Testuje, že rozsah je prázdný.

public static void IsEmpty<T>(Span<T> collection, ref Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertCountInterpolatedStringHandler<T> message, string collectionExpression = "");
static member IsEmpty : Span<'T> * AssertCountInterpolatedStringHandler * string -> unit
Public Shared Sub IsEmpty(Of T) (collection As Span(Of T), ByRef message As Assert.AssertCountInterpolatedStringHandler(Of T), Optional collectionExpression As String = "")

Parametry typu

T

Typ položek rozsahu.

Parametry

collection
Span<T>

Rozpětí.

message
Assert.AssertCountInterpolatedStringHandler<T>

Zpráva, která se má zobrazit, když kontrolní výraz selže.

collectionExpression
String

Syntaktický výraz kolekce zadaný kompilátorem prostřednictvím výrazu argumentu volajícího. Uživatelé by neměli předávat hodnotu pro tento parametr.

Platí pro

IsEmpty<T>(Span<T>, String, String)

Testuje, že rozsah je prázdný.

public static void IsEmpty<T>(Span<T> collection, string? message = "", string collectionExpression = "");
static member IsEmpty : Span<'T> * string * string -> unit
Public Shared Sub IsEmpty(Of T) (collection As Span(Of T), Optional message As String = "", Optional collectionExpression As String = "")

Parametry typu

T

Typ položek rozsahu.

Parametry

collection
Span<T>

Rozpětí.

message
String

Zpráva, která se má zobrazit, když kontrolní výraz selže.

collectionExpression
String

Syntaktický výraz kolekce zadaný kompilátorem prostřednictvím výrazu argumentu volajícího. Uživatelé by neměli předávat hodnotu pro tento parametr.

Platí pro

IsEmpty<T>(ReadOnlySpan<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)

Testuje, že rozsah je prázdný.

public static void IsEmpty<T>(ReadOnlySpan<T> collection, ref Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertCountInterpolatedStringHandler<T> message, string collectionExpression = "");
static member IsEmpty : ReadOnlySpan<'T> * AssertCountInterpolatedStringHandler * string -> unit
Public Shared Sub IsEmpty(Of T) (collection As ReadOnlySpan(Of T), ByRef message As Assert.AssertCountInterpolatedStringHandler(Of T), Optional collectionExpression As String = "")

Parametry typu

T

Typ položek rozsahu.

Parametry

collection
ReadOnlySpan<T>

Rozpětí.

message
Assert.AssertCountInterpolatedStringHandler<T>

Zpráva, která se má zobrazit, když kontrolní výraz selže.

collectionExpression
String

Syntaktický výraz kolekce zadaný kompilátorem prostřednictvím výrazu argumentu volajícího. Uživatelé by neměli předávat hodnotu pro tento parametr.

Platí pro

IsEmpty<T>(ReadOnlyMemory<T>, String, String)

Testuje, že je paměť prázdná.

public static void IsEmpty<T>(ReadOnlyMemory<T> collection, string? message = "", string collectionExpression = "");
static member IsEmpty : ReadOnlyMemory<'T> * string * string -> unit
Public Shared Sub IsEmpty(Of T) (collection As ReadOnlyMemory(Of T), Optional message As String = "", Optional collectionExpression As String = "")

Parametry typu

T

Typ položek paměti.

Parametry

collection
ReadOnlyMemory<T>

Paměť.

message
String

Zpráva, která se má zobrazit, když kontrolní výraz selže.

collectionExpression
String

Syntaktický výraz kolekce zadaný kompilátorem prostřednictvím výrazu argumentu volajícího. Uživatelé by neměli předávat hodnotu pro tento parametr.

Platí pro

IsEmpty<T>(ReadOnlyMemory<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)

Testuje, že je paměť prázdná.

public static void IsEmpty<T>(ReadOnlyMemory<T> collection, ref Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertCountInterpolatedStringHandler<T> message, string collectionExpression = "");
static member IsEmpty : ReadOnlyMemory<'T> * AssertCountInterpolatedStringHandler * string -> unit
Public Shared Sub IsEmpty(Of T) (collection As ReadOnlyMemory(Of T), ByRef message As Assert.AssertCountInterpolatedStringHandler(Of T), Optional collectionExpression As String = "")

Parametry typu

T

Typ položek paměti.

Parametry

collection
ReadOnlyMemory<T>

Paměť.

message
Assert.AssertCountInterpolatedStringHandler<T>

Zpráva, která se má zobrazit, když kontrolní výraz selže.

collectionExpression
String

Syntaktický výraz kolekce zadaný kompilátorem prostřednictvím výrazu argumentu volajícího. Uživatelé by neměli předávat hodnotu pro tento parametr.

Platí pro

IsEmpty<T>(Memory<T>, String, String)

Testuje, že je paměť prázdná.

public static void IsEmpty<T>(Memory<T> collection, string? message = "", string collectionExpression = "");
static member IsEmpty : Memory<'T> * string * string -> unit
Public Shared Sub IsEmpty(Of T) (collection As Memory(Of T), Optional message As String = "", Optional collectionExpression As String = "")

Parametry typu

T

Typ položek paměti.

Parametry

collection
Memory<T>

Paměť.

message
String

Zpráva, která se má zobrazit, když kontrolní výraz selže.

collectionExpression
String

Syntaktický výraz kolekce zadaný kompilátorem prostřednictvím výrazu argumentu volajícího. Uživatelé by neměli předávat hodnotu pro tento parametr.

Platí pro

IsEmpty<T>(ReadOnlySpan<T>, String, String)

Testuje, že rozsah je prázdný.

public static void IsEmpty<T>(ReadOnlySpan<T> collection, string? message = "", string collectionExpression = "");
static member IsEmpty : ReadOnlySpan<'T> * string * string -> unit
Public Shared Sub IsEmpty(Of T) (collection As ReadOnlySpan(Of T), Optional message As String = "", Optional collectionExpression As String = "")

Parametry typu

T

Typ položek rozsahu.

Parametry

collection
ReadOnlySpan<T>

Rozpětí.

message
String

Zpráva, která se má zobrazit, když kontrolní výraz selže.

collectionExpression
String

Syntaktický výraz kolekce zadaný kompilátorem prostřednictvím výrazu argumentu volajícího. Uživatelé by neměli předávat hodnotu pro tento parametr.

Platí pro

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

Zdroj:
Assert.Count.cs
Zdroj:
Assert.Count.cs
Zdroj:
Assert.Count.cs
Zdroj:
Assert.IsEmpty.cs

Testuje, že kolekce je prázdná.

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

Parametry typu

T

Typ položek kolekce.

Parametry

collection
IEnumerable<T>

Kolekce

message
String

Zpráva, která se má zobrazit, když kontrolní výraz selže.

collectionExpression
String

Syntaktický výraz kolekce zadaný kompilátorem prostřednictvím výrazu argumentu volajícího. Uživatelé by neměli předávat hodnotu pro tento parametr.

Platí pro

IsEmpty<T>(IEnumerable<T>, String, Object[])

Zdroj:
Assert.Count.cs
Zdroj:
Assert.Count.cs
Zdroj:
Assert.Count.cs
Zdroj:
Assert.Count.cs

Testuje, že kolekce je prázdná.

public static void IsEmpty<T>(System.Collections.Generic.IEnumerable<T> collection, string? message, params object?[]? parameters);
static member IsEmpty : seq<'T> * string * obj[] -> unit
Public Shared Sub IsEmpty(Of T) (collection As IEnumerable(Of T), message As String, ParamArray parameters As Object())

Parametry typu

T

Typ položek kolekce.

Parametry

collection
IEnumerable<T>

Kolekce

message
String

Formát zprávy, který se má zobrazit, když kontrolní výraz selže.

parameters
Object[]

Parametry pro formátování zprávy.

Platí pro

IsEmpty<T>(IEnumerable<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)

Zdroj:
Assert.Count.cs
Zdroj:
Assert.Count.cs
Zdroj:
Assert.Count.cs
Zdroj:
Assert.IsEmpty.cs

Testuje, že kolekce je prázdná.

public static void IsEmpty<T>(System.Collections.Generic.IEnumerable<T> collection, ref Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertCountInterpolatedStringHandler<T> message, string collectionExpression = "");
static member IsEmpty : seq<'T> * AssertCountInterpolatedStringHandler * string -> unit
Public Shared Sub IsEmpty(Of T) (collection As IEnumerable(Of T), ByRef message As Assert.AssertCountInterpolatedStringHandler(Of T), Optional collectionExpression As String = "")

Parametry typu

T

Typ položek kolekce.

Parametry

collection
IEnumerable<T>

Kolekce

message
Assert.AssertCountInterpolatedStringHandler<T>

Zpráva, která se má zobrazit, když kontrolní výraz selže.

collectionExpression
String

Syntaktický výraz kolekce zadaný kompilátorem prostřednictvím výrazu argumentu volajícího. Uživatelé by neměli předávat hodnotu pro tento parametr.

Platí pro

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

Zdroj:
Assert.Count.cs
Zdroj:
Assert.Count.cs
Zdroj:
Assert.Count.cs
Zdroj:
Assert.Count.cs

Testuje, že kolekce je prázdná.

public static void IsEmpty<T>(System.Collections.Generic.IEnumerable<T> collection, string? message);
static member IsEmpty : seq<'T> * string -> unit
Public Shared Sub IsEmpty(Of T) (collection As IEnumerable(Of T), message As String)

Parametry typu

T

Typ položek kolekce.

Parametry

collection
IEnumerable<T>

Kolekce

message
String

Zpráva, která se má zobrazit, když kontrolní výraz selže.

Platí pro

IsEmpty<T>(Memory<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)

Testuje, že je paměť prázdná.

public static void IsEmpty<T>(Memory<T> collection, ref Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertCountInterpolatedStringHandler<T> message, string collectionExpression = "");
static member IsEmpty : Memory<'T> * AssertCountInterpolatedStringHandler * string -> unit
Public Shared Sub IsEmpty(Of T) (collection As Memory(Of T), ByRef message As Assert.AssertCountInterpolatedStringHandler(Of T), Optional collectionExpression As String = "")

Parametry typu

T

Typ položek paměti.

Parametry

collection
Memory<T>

Paměť.

message
Assert.AssertCountInterpolatedStringHandler<T>

Zpráva, která se má zobrazit, když kontrolní výraz selže.

collectionExpression
String

Syntaktický výraz kolekce zadaný kompilátorem prostřednictvím výrazu argumentu volajícího. Uživatelé by neměli předávat hodnotu pro tento parametr.

Platí pro

IsEmpty<T>(IEnumerable<T>, Assert.AssertCountInterpolatedStringHandler<T>)

Zdroj:
Assert.Count.cs
Zdroj:
Assert.Count.cs
Zdroj:
Assert.Count.cs
Zdroj:
Assert.Count.cs

Testuje, že kolekce je prázdná.

public static void IsEmpty<T>(System.Collections.Generic.IEnumerable<T> collection, ref Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertCountInterpolatedStringHandler<T> message);
static member IsEmpty : seq<'T> * AssertCountInterpolatedStringHandler -> unit
Public Shared Sub IsEmpty(Of T) (collection As IEnumerable(Of T), ByRef message As Assert.AssertCountInterpolatedStringHandler(Of T))

Parametry typu

T

Typ položek kolekce.

Parametry

collection
IEnumerable<T>

Kolekce

message
Assert.AssertCountInterpolatedStringHandler<T>

Zpráva, která se má zobrazit, když kontrolní výraz selže.

Platí pro

IsEmpty<T>(IEnumerable<T>)

Zdroj:
Assert.Count.cs
Zdroj:
Assert.Count.cs
Zdroj:
Assert.Count.cs
Zdroj:
Assert.Count.cs

Testuje, že kolekce je prázdná.

public static void IsEmpty<T>(System.Collections.Generic.IEnumerable<T> collection);
static member IsEmpty : seq<'T> -> unit
Public Shared Sub IsEmpty(Of T) (collection As IEnumerable(Of T))

Parametry typu

T

Typ položek kolekce.

Parametry

collection
IEnumerable<T>

Kolekce

Platí pro