7 Commits

Author SHA1 Message Date
bjorn
355e14616e Formatting; 2019-10-20 14:43:33 -07:00
4O4
0f81a5640b Remove redundant whitespaces 2019-10-09 10:58:01 +02:00
4O4
f5d29f7758 Improve Observer tests
Basically all tests are rewritten here. Implementation details should
not be checked because tests are becoming fragile when it comes to any
refactoring.

What instead should be tested is the actual **public behavior** of the
library when using its public interfaces.

While doing all these changes the following assumptions about this codebase
have been made:
 - class fields which are prefixed with underscore (like `observer._onNext`)
 are intended to be private and thus should only be accessed by members of
 the same class or its subclasses
 - `observer.stopped` is a public **readonly** field and should never be
 modified by the outside world, because its role is considered to be
 purely informational

If the above assumptions are not correct, this will need to be discussed
further. These improvements of the tests are necessary to introduce any
changes which include refactoring of the `Observer` in order to fix some
bugs.
2019-10-02 17:24:12 +02:00
bjorn
c3eb908382 Update tests; 2015-10-25 11:44:56 -07:00
bjorn
bbe76b530d Fix observer test naming; 2015-08-29 21:11:50 -07:00
bjorn
ee98e897a3 Observer tests; 2015-08-29 21:10:47 -07:00
bjorn
ed2cb6f64a Setup tests; 2015-08-29 15:18:49 -07:00