public void DateTimeValueStorage_Add_SupportsIntegerAndAmount() { DateTime date = new DateTime(2015, 10, 10); DateTimeValueStorage storage1 = new DateTimeValueStorage(date); IntegerValueStorage storage2 = new IntegerValueStorage(1000); Assert.Equal(date.AddSeconds(1000).Ticks, storage1.Add(storage2).AsLong); storage1 = new DateTimeValueStorage(date); AmountValueStorage storage3 = new AmountValueStorage(new Amount(2000)); Assert.Equal(date.AddSeconds(2000).Ticks, storage1.Add(storage3).AsLong); }