Beispiel #1
0
        public void TestBonjour()
        {
            FakeDate fakeDate  = new FakeDate(2018, 8, 21, 10, 0, 0);
            Message  target    = new Message(fakeDate, 9, 13, 18);
            string   excpected = "Bonjour";
            string   message   = target.DisplayDayMessage();

            Assert.IsTrue(message.Contains(excpected));
            Assert.IsTrue(message.Contains("mardi"));
        }
Beispiel #2
0
        public void TestBonWE()
        {
            FakeDate fakeDate = new FakeDate(2018, 8, 17, 23, 0, 1);

            Message target    = new Message(fakeDate, 9, 13, 18);
            string  excpected = "il faut arrêter de travailler";
            string  message   = target.DisplayDayMessage();

            Assert.IsTrue(message.Contains(excpected));
            Assert.IsTrue(message.Contains("vendredi"));
        }
Beispiel #3
0
        public void TestBonAprem()
        {
            FakeDate fakeDate = new FakeDate(2018, 8, 22, 14, 0, 0);

            Message target    = new Message(fakeDate, 9, 13, 18);
            string  excpected = "Bon après-midi";
            string  message   = target.DisplayDayMessage();

            Assert.IsTrue(message.Contains(excpected));
            Assert.IsTrue(message.Contains("mercredi"));
        }