# Sandbox.UI.StyleBlock.Test

```csharp
StyleSelector Test(IStyleTarget target, PseudoClass forceFlag = 0)
```

Test whether target passes our selector tests. We use forceFlag to do alternate tests for flags like ::before and ::after.
It's basically added to the target's pseudo class list for the test.

### Parameters

- `target` (`IStyleTarget`)
- `forceFlag` (`PseudoClass`), default `0`

### Returns

`StyleSelector`

Declared in [Sandbox.UI.StyleBlock](/api/Sandbox.UI.StyleBlock).
Assembly: `Sandbox.Engine`.
