示例#1
0
        public void OnNext_ShouldFireWithConvertedValue()
        {
            var flow = new MappedFlow <int, string>(_source, x => x.ToString() + "d");

            flow.OnNext(x => Assert.Equal("15d", x));
        }
示例#2
0
        public void Current_ShouldReturnConvertedValue()
        {
            var flow = new MappedFlow <int, string>(_source, x => x.ToString() + "d");

            Assert.Equal("10d", flow.Current);
        }