---
title: "assertDepthIsNotEqualTo"
description: "Asserts that the layout of this node has depth that is NOT equal to expectedDepth."
type: "function"
lastmod: "2026-06-18T10:32:52.423631Z"
---
## API Reference

### assertDepthIsNotEqualTo

> Source set: Android

```kotlin
@CanIgnoreReturnValue
public fun SubspaceSemanticsNodeInteraction.assertDepthIsNotEqualTo(
    expectedDepth: Dp
): SubspaceSemanticsNodeInteraction
```

Asserts that the layout of this node has depth that is NOT equal to `expectedDepth`.

#### Parameters

| | |
| --- | --- |
| expectedDepth | The depth to assert. |
