```fun MyDummyClass.shouldContainInOrder(myLinkedL...
# kotest
l
Copy code
fun MyDummyClass.shouldContainInOrder(myLinkedList) = this should containInOrder(myLinkedList)
fun MyDummyClass.shouldNotContainInOrder(myLinkedList) = this shouldNot containInOrder(myLinkedList)

fun containInOrder(linkedList: LinkedList) = object : Matcher<MyDummyClass> {
    override fun test(value: MyDummyClass) = MatcherResult(
        linkedList.ordering() == whatIWant,
        "Should be ordered like I want, b ut isn't",
        "Should not be ordered, but is
    )
}