Assert.IsEmpty Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
IsEmpty(IEnumerable)
- Źródło:
- Assert.Count.cs
Sprawdza, czy kolekcja jest pusta.
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
Kolekcja.
Dotyczy
IsEmpty(IEnumerable, String)
- Źródło:
- Assert.Count.cs
Sprawdza, czy kolekcja jest pusta.
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
Kolekcja.
- message
- String
Format komunikatu do wyświetlenia w przypadku niepowodzenia asercji.
Dotyczy
IsEmpty(IEnumerable, String, String)
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.IsEmpty.cs
Sprawdza, czy kolekcja jest pusta.
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
Kolekcja.
- message
- String
Komunikat wyświetlany w przypadku niepowodzenia asercji.
- collectionExpression
- String
Wyrażenie składniowe kolekcji podane przez kompilator za pomocą wyrażenia argumentu wywołującego. Użytkownicy nie powinni przekazywać wartości dla tego parametru.
Dotyczy
IsEmpty<T>(Span<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)
Sprawdza, czy zakres jest pusty.
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 elementów zakresu.
Parametry
- collection
- Span<T>
Rozpiętość.
- message
- Assert.AssertCountInterpolatedStringHandler<T>
Komunikat wyświetlany w przypadku niepowodzenia asercji.
- collectionExpression
- String
Wyrażenie składniowe kolekcji podane przez kompilator za pomocą wyrażenia argumentu wywołującego. Użytkownicy nie powinni przekazywać wartości dla tego parametru.
Dotyczy
IsEmpty<T>(Span<T>, String, String)
Sprawdza, czy zakres jest pusty.
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 elementów zakresu.
Parametry
- collection
- Span<T>
Rozpiętość.
- message
- String
Komunikat wyświetlany w przypadku niepowodzenia asercji.
- collectionExpression
- String
Wyrażenie składniowe kolekcji podane przez kompilator za pomocą wyrażenia argumentu wywołującego. Użytkownicy nie powinni przekazywać wartości dla tego parametru.
Dotyczy
IsEmpty<T>(ReadOnlySpan<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)
Sprawdza, czy zakres jest pusty.
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 elementów zakresu.
Parametry
- collection
- ReadOnlySpan<T>
Rozpiętość.
- message
- Assert.AssertCountInterpolatedStringHandler<T>
Komunikat wyświetlany w przypadku niepowodzenia asercji.
- collectionExpression
- String
Wyrażenie składniowe kolekcji podane przez kompilator za pomocą wyrażenia argumentu wywołującego. Użytkownicy nie powinni przekazywać wartości dla tego parametru.
Dotyczy
IsEmpty<T>(ReadOnlyMemory<T>, String, String)
Sprawdza, czy pamięć jest pusta.
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 elementów pamięci.
Parametry
- collection
- ReadOnlyMemory<T>
Pamięć.
- message
- String
Komunikat wyświetlany w przypadku niepowodzenia asercji.
- collectionExpression
- String
Wyrażenie składniowe kolekcji podane przez kompilator za pomocą wyrażenia argumentu wywołującego. Użytkownicy nie powinni przekazywać wartości dla tego parametru.
Dotyczy
IsEmpty<T>(ReadOnlyMemory<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)
Sprawdza, czy pamięć jest pusta.
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 elementów pamięci.
Parametry
- collection
- ReadOnlyMemory<T>
Pamięć.
- message
- Assert.AssertCountInterpolatedStringHandler<T>
Komunikat wyświetlany w przypadku niepowodzenia asercji.
- collectionExpression
- String
Wyrażenie składniowe kolekcji podane przez kompilator za pomocą wyrażenia argumentu wywołującego. Użytkownicy nie powinni przekazywać wartości dla tego parametru.
Dotyczy
IsEmpty<T>(Memory<T>, String, String)
Sprawdza, czy pamięć jest pusta.
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 elementów pamięci.
Parametry
- collection
- Memory<T>
Pamięć.
- message
- String
Komunikat wyświetlany w przypadku niepowodzenia asercji.
- collectionExpression
- String
Wyrażenie składniowe kolekcji podane przez kompilator za pomocą wyrażenia argumentu wywołującego. Użytkownicy nie powinni przekazywać wartości dla tego parametru.
Dotyczy
IsEmpty<T>(ReadOnlySpan<T>, String, String)
Sprawdza, czy zakres jest pusty.
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 elementów zakresu.
Parametry
- collection
- ReadOnlySpan<T>
Rozpiętość.
- message
- String
Komunikat wyświetlany w przypadku niepowodzenia asercji.
- collectionExpression
- String
Wyrażenie składniowe kolekcji podane przez kompilator za pomocą wyrażenia argumentu wywołującego. Użytkownicy nie powinni przekazywać wartości dla tego parametru.
Dotyczy
IsEmpty<T>(IEnumerable<T>, String, String)
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.IsEmpty.cs
Sprawdza, czy kolekcja jest pusta.
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 elementów kolekcji.
Parametry
- collection
- IEnumerable<T>
Kolekcja.
- message
- String
Komunikat wyświetlany w przypadku niepowodzenia asercji.
- collectionExpression
- String
Wyrażenie składniowe kolekcji podane przez kompilator za pomocą wyrażenia argumentu wywołującego. Użytkownicy nie powinni przekazywać wartości dla tego parametru.
Dotyczy
IsEmpty<T>(IEnumerable<T>, String, Object[])
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.Count.cs
Sprawdza, czy kolekcja jest pusta.
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 elementów kolekcji.
Parametry
- collection
- IEnumerable<T>
Kolekcja.
- message
- String
Format komunikatu do wyświetlenia w przypadku niepowodzenia asercji.
- parameters
- Object[]
Parametry do formatowania komunikatu.
Dotyczy
IsEmpty<T>(IEnumerable<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.IsEmpty.cs
Sprawdza, czy kolekcja jest pusta.
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 elementów kolekcji.
Parametry
- collection
- IEnumerable<T>
Kolekcja.
- message
- Assert.AssertCountInterpolatedStringHandler<T>
Komunikat wyświetlany w przypadku niepowodzenia asercji.
- collectionExpression
- String
Wyrażenie składniowe kolekcji podane przez kompilator za pomocą wyrażenia argumentu wywołującego. Użytkownicy nie powinni przekazywać wartości dla tego parametru.
Dotyczy
IsEmpty<T>(IEnumerable<T>, String)
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.Count.cs
Sprawdza, czy kolekcja jest pusta.
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 elementów kolekcji.
Parametry
- collection
- IEnumerable<T>
Kolekcja.
- message
- String
Komunikat wyświetlany w przypadku niepowodzenia asercji.
Dotyczy
IsEmpty<T>(Memory<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)
Sprawdza, czy pamięć jest pusta.
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 elementów pamięci.
Parametry
- collection
- Memory<T>
Pamięć.
- message
- Assert.AssertCountInterpolatedStringHandler<T>
Komunikat wyświetlany w przypadku niepowodzenia asercji.
- collectionExpression
- String
Wyrażenie składniowe kolekcji podane przez kompilator za pomocą wyrażenia argumentu wywołującego. Użytkownicy nie powinni przekazywać wartości dla tego parametru.
Dotyczy
IsEmpty<T>(IEnumerable<T>, Assert.AssertCountInterpolatedStringHandler<T>)
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.Count.cs
Sprawdza, czy kolekcja jest pusta.
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 elementów kolekcji.
Parametry
- collection
- IEnumerable<T>
Kolekcja.
- message
- Assert.AssertCountInterpolatedStringHandler<T>
Komunikat wyświetlany w przypadku niepowodzenia asercji.
Dotyczy
IsEmpty<T>(IEnumerable<T>)
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.Count.cs
- Źródło:
- Assert.Count.cs
Sprawdza, czy kolekcja jest pusta.
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 elementów kolekcji.
Parametry
- collection
- IEnumerable<T>
Kolekcja.