public void Ago() { // Type var @this = new TimeSpan(1, 0, 0, 0); // Examples DateTime value = @this.Ago(); // return yesterday. // Unit Test Assert.IsTrue(DateTime.Now.Subtract(value).Days >= 1); }