scientistproject / Scientist.net

A .NET library for carefully refactoring critical paths. It's a port of GitHub's Ruby Scientist library
MIT License
1.46k stars 95 forks source link

Experiment without Try #70

Closed arntj closed 8 years ago

arntj commented 8 years ago

The Ruby docs says following about not adding a Try block in an experiment:

If you don't declare any try blocks, none of the Scientist machinery is invoked and the control value is always returned.

From what I can see in the source code the behavior is identical in the .NET version, but this behavior is not clearly stated anywhere. I propose adding a test to verify that 'nothing' happens if you don't include a Try block in an experiment.

haacked commented 8 years ago

Ah, good idea. Feel free to send a PR with such a test.

arntj commented 8 years ago

73 closes this issue.

haacked commented 8 years ago

Closed by #73