예제 #1
0
        public void GetDate_Should_BeBeforeYesterday()
        {
            var mock = new GetCursDateQueryHandlerMosk();

            mock.GetDateFromPoint(-1, -1).Should().Be(DateTime.Now.Date.AddDays(-2));
        }
예제 #2
0
        public void GetDate_Should_BeTomorrow()
        {
            var mock = new GetCursDateQueryHandlerMosk();

            mock.GetDateFromPoint(1, -1).Should().Be(DateTime.Now.Date.AddDays(1));
        }
예제 #3
0
        public void GetDate_Should_BeToday()
        {
            var mock = new GetCursDateQueryHandlerMosk();

            mock.GetDateFromPoint(1, 1).Should().Be(DateTime.Now.Date);
        }