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

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

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