Add tests on MessagesView
This commit is contained in:
parent
4e0f308cac
commit
fa52ff54c8
8 changed files with 376 additions and 23 deletions
|
|
@ -28,6 +28,12 @@ class EnsureNeverCalledWithParam<T> : (T) -> Unit {
|
|||
}
|
||||
}
|
||||
|
||||
class EnsureNeverCalledWithParamAndResult<T, R> : (T) -> R {
|
||||
override fun invoke(p1: T): R {
|
||||
throw AssertionError("Should not be called and is called with $p1")
|
||||
}
|
||||
}
|
||||
|
||||
class EnsureNeverCalledWithTwoParams<T, U> : (T, U) -> Unit {
|
||||
override fun invoke(p1: T, p2: U) {
|
||||
throw AssertionError("Should not be called and is called with $p1 and $p2")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue