コード例 #1
0
        public void test_change_post_it_done()
        {
            Post_It task1    = new Post_It("Do this", new FakeClock("12/03/2020 17:00:00"), new FakeStatus("To Do"));
            var     returned = task1.isDone();

            Assert.Equal("TASK: Do this, CREATION DATE: 12/03/2020 17:00:00, Status: Done", task1.getPost_It());
        }
コード例 #2
0
        public void test_get_post_it()
        {
            Post_It task1 = new Post_It("Do this", new FakeClock("12/03/2020 17:00:00"), new FakeStatus("To Do"));

            Assert.Equal("TASK: Do this, CREATION DATE: 12/03/2020 17:00:00, Status: To Do", task1.getPost_It());
        }
コード例 #3
0
        static void Main(string[] args)
        {
            Post_It task1 = new Post_It("Do this", new Clock(), new Status());

            Console.WriteLine(task1.getPost_It());
        }