예제 #1
0
 public void TestRepeat1()
 {
     FirableEvent<int> src = new FirableEvent<int>();
     var r = src.Repeat();
     var o = new List<int>();
     var s = r.Subscribe(o.Add);
     src.Fire(1);
     src.Fire(2);
     src.Fire(3);
     AssertArraysEqual(Arrays<int>.AsList(1,2,3), o);
     s.Dispose();
     r.Dispose();
     src.Dispose();
 }