示例#1
0
            public void should_subract_time_from_a_date()
            {
                var actualDirection = TimeDirection.Future;
                Func <DateTime, int, DateTime> function =
                    (d, t) => { actualDirection = t; return(d); };

                function.Ago();

                Check.That(actualDirection).IsEqualTo(TimeDirection.Past);
            }