Closed davezych closed 8 years ago
maybe we should put the file publisher into the Shience.Tests
library, since the user is probably not needing it except for reference how to implement his own method.
Readded.
I've re-implemented it as a .PublishTo(result => ...)
extension method that allows for chaining in an local test branch. This way the user can choose to have multiple publish targets:
var result = Shience.New<bool>("somename")
.Test(..., ...)
.PublishTo(Log.Publish)
.PublishTo(Console.Publish)
.PublishTo(_ => ran = true)
.Execute()
The existing documentation got updated, but the new version still needs additional documentation and testing.
As mentioned in #10,
IPublisher
and theSetPublisher
method aren't needed anymore. We will only support setting a publisher per-test, when callingNew
: