---
title: "testAddArguments(with:expectedValues:expectedValueInterval:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusterunittesting/testaddarguments(with:expectedvalues:expectedvalueinterval:completion:)"
---

# testAddArguments(with:expectedValues:expectedValueInterval:completion:)

## Declaration

```swift
func testAddArguments(with params: MTRUnitTestingClusterTestAddArgumentsParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completion: @escaping @Sendable (MTRUnitTestingClusterTestAddArgumentsResponseParams?, (any Error)?) -> Void)
```

```swift
func testAddArguments(with params: MTRUnitTestingClusterTestAddArgumentsParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws -> MTRUnitTestingClusterTestAddArgumentsResponseParams
```
