Assert.IsEmpty メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
IsEmpty(IEnumerable)
- ソース:
- Assert.Count.cs
コレクションが空であることをテストします。
public static void IsEmpty(System.Collections.IEnumerable collection);
static member IsEmpty : System.Collections.IEnumerable -> unit
Public Shared Sub IsEmpty (collection As IEnumerable)
パラメーター
- collection
- IEnumerable
コレクションです。
適用対象
IsEmpty(IEnumerable, String)
- ソース:
- Assert.Count.cs
コレクションが空であることをテストします。
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)
パラメーター
- collection
- IEnumerable
コレクションです。
- message
- String
アサーションが失敗したときに表示するメッセージ形式。
適用対象
IsEmpty(IEnumerable, String, String)
- ソース:
- Assert.Count.cs
- ソース:
- Assert.Count.cs
- ソース:
- Assert.Count.cs
コレクションが空であることをテストします。
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 = "")
パラメーター
- collection
- IEnumerable
コレクションです。
- message
- String
アサーションが失敗したときに表示するメッセージ。
- collectionExpression
- String
呼び出し元の引数式を介してコンパイラによって指定されたコレクションの構文式。 ユーザーは、このパラメーターの値を渡さないでください。
適用対象
IsEmpty<T>(Span<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)
スパンが空であることをテストします。
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 = "")
型パラメーター
- T
スパン項目の型。
パラメーター
- collection
- Span<T>
スパン。
- message
- Assert.AssertCountInterpolatedStringHandler<T>
アサーションが失敗したときに表示するメッセージ。
- collectionExpression
- String
呼び出し元の引数式を介してコンパイラによって指定されたコレクションの構文式。 ユーザーは、このパラメーターの値を渡さないでください。
適用対象
IsEmpty<T>(Span<T>, String, String)
スパンが空であることをテストします。
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 = "")
型パラメーター
- T
スパン項目の型。
パラメーター
- collection
- Span<T>
スパン。
- message
- String
アサーションが失敗したときに表示するメッセージ。
- collectionExpression
- String
呼び出し元の引数式を介してコンパイラによって指定されたコレクションの構文式。 ユーザーは、このパラメーターの値を渡さないでください。
適用対象
IsEmpty<T>(ReadOnlySpan<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)
スパンが空であることをテストします。
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 = "")
型パラメーター
- T
スパン項目の型。
パラメーター
- collection
- ReadOnlySpan<T>
スパン。
- message
- Assert.AssertCountInterpolatedStringHandler<T>
アサーションが失敗したときに表示するメッセージ。
- collectionExpression
- String
呼び出し元の引数式を介してコンパイラによって指定されたコレクションの構文式。 ユーザーは、このパラメーターの値を渡さないでください。
適用対象
IsEmpty<T>(ReadOnlyMemory<T>, String, String)
メモリが空であることをテストします。
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 = "")
型パラメーター
- T
メモリ項目の型。
パラメーター
- collection
- ReadOnlyMemory<T>
メモリ。
- message
- String
アサーションが失敗したときに表示するメッセージ。
- collectionExpression
- String
呼び出し元の引数式を介してコンパイラによって指定されたコレクションの構文式。 ユーザーは、このパラメーターの値を渡さないでください。
適用対象
IsEmpty<T>(ReadOnlyMemory<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)
メモリが空であることをテストします。
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 = "")
型パラメーター
- T
メモリ項目の型。
パラメーター
- collection
- ReadOnlyMemory<T>
メモリ。
- message
- Assert.AssertCountInterpolatedStringHandler<T>
アサーションが失敗したときに表示するメッセージ。
- collectionExpression
- String
呼び出し元の引数式を介してコンパイラによって指定されたコレクションの構文式。 ユーザーは、このパラメーターの値を渡さないでください。
適用対象
IsEmpty<T>(Memory<T>, String, String)
メモリが空であることをテストします。
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 = "")
型パラメーター
- T
メモリ項目の型。
パラメーター
- collection
- Memory<T>
メモリ。
- message
- String
アサーションが失敗したときに表示するメッセージ。
- collectionExpression
- String
呼び出し元の引数式を介してコンパイラによって指定されたコレクションの構文式。 ユーザーは、このパラメーターの値を渡さないでください。
適用対象
IsEmpty<T>(ReadOnlySpan<T>, String, String)
スパンが空であることをテストします。
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 = "")
型パラメーター
- T
スパン項目の型。
パラメーター
- collection
- ReadOnlySpan<T>
スパン。
- message
- String
アサーションが失敗したときに表示するメッセージ。
- collectionExpression
- String
呼び出し元の引数式を介してコンパイラによって指定されたコレクションの構文式。 ユーザーは、このパラメーターの値を渡さないでください。
適用対象
IsEmpty<T>(IEnumerable<T>, String, String)
- ソース:
- Assert.Count.cs
- ソース:
- Assert.Count.cs
- ソース:
- Assert.Count.cs
コレクションが空であることをテストします。
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 = "")
型パラメーター
- T
コレクション項目の型。
パラメーター
- collection
- IEnumerable<T>
コレクションです。
- message
- String
アサーションが失敗したときに表示するメッセージ。
- collectionExpression
- String
呼び出し元の引数式を介してコンパイラによって指定されたコレクションの構文式。 ユーザーは、このパラメーターの値を渡さないでください。
適用対象
IsEmpty<T>(IEnumerable<T>, String, Object[])
- ソース:
- Assert.Count.cs
- ソース:
- Assert.Count.cs
- ソース:
- Assert.Count.cs
- ソース:
- Assert.Count.cs
コレクションが空であることをテストします。
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())
型パラメーター
- T
コレクション項目の型。
パラメーター
- collection
- IEnumerable<T>
コレクションです。
- message
- String
アサーションが失敗したときに表示するメッセージ形式。
- parameters
- Object[]
メッセージの書式を設定するパラメーター。
適用対象
IsEmpty<T>(IEnumerable<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)
- ソース:
- Assert.Count.cs
- ソース:
- Assert.Count.cs
- ソース:
- Assert.Count.cs
コレクションが空であることをテストします。
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 = "")
型パラメーター
- T
コレクション項目の型。
パラメーター
- collection
- IEnumerable<T>
コレクションです。
- message
- Assert.AssertCountInterpolatedStringHandler<T>
アサーションが失敗したときに表示するメッセージ。
- collectionExpression
- String
呼び出し元の引数式を介してコンパイラによって指定されたコレクションの構文式。 ユーザーは、このパラメーターの値を渡さないでください。
適用対象
IsEmpty<T>(IEnumerable<T>, String)
- ソース:
- Assert.Count.cs
- ソース:
- Assert.Count.cs
- ソース:
- Assert.Count.cs
- ソース:
- Assert.Count.cs
コレクションが空であることをテストします。
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)
型パラメーター
- T
コレクション項目の型。
パラメーター
- collection
- IEnumerable<T>
コレクションです。
- message
- String
アサーションが失敗したときに表示するメッセージ。
適用対象
IsEmpty<T>(Memory<T>, Assert.AssertCountInterpolatedStringHandler<T>, String)
メモリが空であることをテストします。
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 = "")
型パラメーター
- T
メモリ項目の型。
パラメーター
- collection
- Memory<T>
メモリ。
- message
- Assert.AssertCountInterpolatedStringHandler<T>
アサーションが失敗したときに表示するメッセージ。
- collectionExpression
- String
呼び出し元の引数式を介してコンパイラによって指定されたコレクションの構文式。 ユーザーは、このパラメーターの値を渡さないでください。
適用対象
IsEmpty<T>(IEnumerable<T>, Assert.AssertCountInterpolatedStringHandler<T>)
- ソース:
- Assert.Count.cs
- ソース:
- Assert.Count.cs
- ソース:
- Assert.Count.cs
- ソース:
- Assert.Count.cs
コレクションが空であることをテストします。
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))
型パラメーター
- T
コレクション項目の型。
パラメーター
- collection
- IEnumerable<T>
コレクションです。
- message
- Assert.AssertCountInterpolatedStringHandler<T>
アサーションが失敗したときに表示するメッセージ。
適用対象
IsEmpty<T>(IEnumerable<T>)
- ソース:
- Assert.Count.cs
- ソース:
- Assert.Count.cs
- ソース:
- Assert.Count.cs
- ソース:
- Assert.Count.cs
コレクションが空であることをテストします。
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))
型パラメーター
- T
コレクション項目の型。
パラメーター
- collection
- IEnumerable<T>
コレクションです。