コード例 #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);
        }