public void TestOffset()
 {
     var w = new DateTimeProxy();
     var o1 = DateTimeOffset.Now.Offset;
     var o2 = w.CurrentOffset();
     Assert.AreEqual(o1, o2);
 }
 public void TestUtcNow()
 {
     var w = new DateTimeProxy();
     var dt = DateTime.UtcNow;
     var dt2 = w.UtcNow();
     var diff = dt2 - dt;
     Assert.IsTrue(diff.TotalSeconds < 2);
 }