Esempio n. 1
0
        public void OnDinnerTimePlus4Seconds_WithDinnerTimePlus4Seconds_ShouldPass()
        {
            var assertion = CloseToAssertion(Times.DinnerTime(), 4.Seconds());
            var result    = assertion.AssertValue(Times.DinnerTime().AddSeconds(4));

            Assert.IsTrue(result.succeeded);
            Assert.AreEqual("11/16/1984 18:00:04.000", result.actualValueString);
            Assert.AreEqual("(expected between 11/16/1984 17:59:56.000 and 11/16/1984 18:00:04.000)", result.expectationString);
        }