public void OnNext_ShouldFireWithConvertedValue() { var flow = new MappedFlow <int, string>(_source, x => x.ToString() + "d"); flow.OnNext(x => Assert.Equal("15d", x)); }
public void Current_ShouldReturnConvertedValue() { var flow = new MappedFlow <int, string>(_source, x => x.ToString() + "d"); Assert.Equal("10d", flow.Current); }