public void null_segment_should_throw_exception() { TestSegment segment = null; var exception = Assert.Throws <ArgumentNullException>(() => { Observable.Return("exception").Pipe(segment); }); exception.Message.ShouldBe("Value cannot be null.\r\nParameter name: segment"); }
public void input_should_be_recieved_by_each_segment_in_the_fanout() { var source = Observable.Return("Test"); var pipea = new TestSegment(); var pipeb = new TestSegment(); source.Fanout(pipea, pipeb); pipea.Sink(s => s.ShouldBe("Test")); pipeb.Sink(s => s.ShouldBe("Test")); }