Issue
I am trying to get my hands dirty with testing in Android.
Came with many terms like assertEquals
, ViewAssertion
, assertThat
etc from many testing frameworks.
But, always wondered why this name assert ? Searched on internet, but nothing got into my head.
Hope, somebody explain me in simple English.
Solution
From the Merriam-Webster online dictionary:
Definition of assert
to state or declare positively and often forcefully or aggressively
So, when you call something like assertEquals(input1, input2)
, you are simply stating that the two inputs are logically equal.
Answered By - Tim Biegeleisen
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.