Hey everyone!
is there any assertion which can understand a mapped object is based on another class?
Let's say I have:
val p = Person (name='Sam', age= 30)
and there is function that I want to test and returns 'mapped' version of Person, sth like:
val mp = MappedPerson(name, age, someotherParam)
mp shouldBeDerivedFrom* m
(*shouldBeDerivedFrom doesn't exist I'm just writing my thoughts)
I think this can be helpful in layered architecture tests.
Any idea?