public void should_retry() { int i = 0; var scalar = new Retry <Unit>( new FuncOf <Unit>( fun(() => { if (i < 2) { i++; throw new NotFiniteNumberException(i.ToString()); } })), 3); scalar.Value(); Assert.AreEqual(2, scalar.Errors().Length); }