# TestState

    @propertyWrapper
    public struct TestState<T>

A property wrapper that will automatically reset the contained value after each test.

- `wrappedValue`

  Undocumented

  #### Declaration

  Swift

      public var wrappedValue: T! { get set }

- `init()`

  Resets the property to nil after each test.

  #### Declaration

  Swift

      public init()

- `init(wrappedValue:)`

  Undocumented

  #### Declaration

  Swift

      public init(wrappedValue: @autoclosure @escaping () -> T?)

- `init(_:)`

  Sets the property to an initial value before each test and resets it to nil after each test.

  #### Declaration

  Swift

      public init(_ initialValue: @autoclosure @escaping () -> T)

  #### Parameters

  `initialValue` | An autoclosure to return the initial value to use before the test.

© 2024 Quick Contributors. All rights reserved. (Last updated: 2024-07-23)

Generated by jazzy ♪♫ v0.14.4, a Realm project.