예제 #1
0
        public void getTimeWordMinutes()
        {
            PostIt post = new PostIt(new DateTime(2020, 2, 10, 10, 50, 0));

            Assert.Equal(post.getTimeWord(0), "min");
        }
예제 #2
0
        public void getTimeWordYear()
        {
            PostIt post = new PostIt(new DateTime(2020, 2, 10, 10, 50, 0));

            Assert.Equal(post.getTimeWord(525600), "year");
        }
예제 #3
0
        public void getTimeWordMonth()
        {
            PostIt post = new PostIt(new DateTime(2020, 2, 10, 10, 50, 0));

            Assert.Equal(post.getTimeWord(43800), "month");
        }
예제 #4
0
        public void getTimeWordWeek()
        {
            PostIt post = new PostIt(new DateTime(2020, 2, 10, 10, 50, 0));

            Assert.Equal(post.getTimeWord(10080), "week");
        }
예제 #5
0
        public void getTimeWordDay()
        {
            PostIt post = new PostIt(new DateTime(2020, 2, 10, 10, 50, 0));

            Assert.Equal(post.getTimeWord(1440), "day");
        }
예제 #6
0
        public void getTimeWordHour()
        {
            PostIt post = new PostIt(new DateTime(2020, 2, 10, 10, 50, 0));

            Assert.Equal(post.getTimeWord(60), "hour");
        }