assertk / assertk.assertions / isEqualToWithGivenProperties

isEqualToWithGivenProperties

(common, jvm) fun <T> Assert<T>.isEqualToWithGivenProperties(other: T, vararg properties: KProperty1<T, Any?>): Unit

Returns an assert that compares only the given properties on the calling class

Parameters

other - Other value to compare to

properties - properties of the type with which to compare