Assert.IsNotEmpty Metoda

Definice

Přetížení

Name Description
IsNotEmpty(IEnumerable)

Testuje, že kolekce není prázdná.

IsNotEmpty(IEnumerable, String)

Testuje, že kolekce není prázdná.

IsNotEmpty(IEnumerable, String, String)

Testuje, že kolekce není prázdná.

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

Testuje, že kolekce není prázdná.

IsNotEmpty<T>(IEnumerable<T>, Assert.AssertIsNotEmptyInterpolatedStringHandler<T>, String)

Testuje, že kolekce není prázdná.

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

Testuje, že kolekce není prázdná.

IsNotEmpty<T>(IEnumerable<T>, Assert.AssertIsNotEmptyInterpolatedStringHandler<T>)

Testuje, že kolekce není prázdná.

IsNotEmpty<T>(IEnumerable<T>)

Testuje, že kolekce není prázdná.

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

Testuje, jestli kolekce není prázdná.

IsNotEmpty(IEnumerable)

Zdroj:
Assert.Count.cs

Testuje, že kolekce není prázdná.

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

Parametry

collection
IEnumerable

Kolekce

Platí pro

IsNotEmpty(IEnumerable, String)

Zdroj:
Assert.Count.cs

Testuje, že kolekce není prázdná.

public static void IsNotEmpty(System.Collections.IEnumerable collection, string? message);
static member IsNotEmpty : System.Collections.IEnumerable * string -> unit
Public Shared Sub IsNotEmpty (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

IsNotEmpty(IEnumerable, String, String)

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

Testuje, že kolekce není prázdná.

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

Parametry

collection
IEnumerable

Kolekce

message
String

Formát zprávy, 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

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

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

Testuje, že kolekce není prázdná.

public static void IsNotEmpty<T>(System.Collections.Generic.IEnumerable<T> collection, string? message, params object?[]? parameters);
static member IsNotEmpty : seq<'T> * string * obj[] -> unit
Public Shared Sub IsNotEmpty(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

IsNotEmpty<T>(IEnumerable<T>, Assert.AssertIsNotEmptyInterpolatedStringHandler<T>, String)

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

Testuje, že kolekce není prázdná.

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

Parametry typu

T

Typ položek kolekce.

Parametry

collection
IEnumerable<T>

Kolekce

message
Assert.AssertIsNotEmptyInterpolatedStringHandler<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

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

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

Testuje, že kolekce není prázdná.

public static void IsNotEmpty<T>(System.Collections.Generic.IEnumerable<T> collection, string? message = "", string collectionExpression = "");
static member IsNotEmpty : seq<'T> * string * string -> unit
Public Shared Sub IsNotEmpty(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

Formát zprávy, 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

IsNotEmpty<T>(IEnumerable<T>, Assert.AssertIsNotEmptyInterpolatedStringHandler<T>)

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

Testuje, že kolekce není prázdná.

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

Parametry typu

T

Typ položek kolekce.

Parametry

collection
IEnumerable<T>

Kolekce

message
Assert.AssertIsNotEmptyInterpolatedStringHandler<T>

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

Platí pro

IsNotEmpty<T>(IEnumerable<T>)

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

Testuje, že kolekce není prázdná.

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

Parametry typu

T

Typ položek kolekce.

Parametry

collection
IEnumerable<T>

Kolekce

Platí pro

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

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

Testuje, jestli kolekce není prázdná.

public static void IsNotEmpty<T>(System.Collections.Generic.IEnumerable<T> collection, string? message);
static member IsNotEmpty : seq<'T> * string -> unit
Public Shared Sub IsNotEmpty(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