Table of Contents

Method ValidatePropertyIsNotNull

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

ValidatePropertyIsNotNull(object?, string, HashSet<string>)

Validates that the property value is not null, and if it is, adds the given property name to the invalid property hash set.

protected static void ValidatePropertyIsNotNull(object? propertyValue, string propertyName, HashSet<string> invalidProperties)

Parameters

propertyValue object

The property value

propertyName string

The property name

invalidProperties HashSet<string>

The hash set to contain the invalid property name list