- Added unit tests file for Triangular distribution (TriangularTests.cs).
- Added some unit tests for Triangular distribution, using BetaTests.cs as a template.
There are still more unit tests to bring over from BetaTests.cs.
- (fixed) Triangular dist's static sample methods weren't declared as static.
* To fix: Three of the existing tests are still failing.
Fixed unit test failure: Triangular should not accept infinite parameters.
I noticed that none of the other distribution classes check for infinite values, but perhaps they should.
See #201.
Note that +Infinity is a valid input parameter for the Beta distribution (see BetaTests.cs).
TriangularCreateFailsWithBadParameters is now a parameterised test with multiple test cases, instead of a single test containing multiple assertions.
Distributions: merge work on Triangular distribution
Distributions: Triangular distribution parameter exception aligned, fixes tests #202