Assert.IsEmpty Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
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>(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, String) |
Testuje, že kolekce je 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<T>(IEnumerable<T>, String) |
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
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>(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
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, String)
- 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 = "", 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>, 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
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.