Exemple #1
0
        public void VendrediSoirTest()
        {
            FakeDate     fakeDate     = new FakeDate(DayOfWeek.Friday, 18);
            FakeUserName fakeUserName = new FakeUserName();
            Message      target       = new Message(fakeUserName, fakeDate);
            string       result       = target.GetHelloMessage();

            Assert.AreEqual("Bon W.-E. Toto", result);
        }
Exemple #2
0
        public void BonsoirTest()
        {
            FakeDate     fakeDate     = new FakeDate(DayOfWeek.Monday, 18);
            FakeUserName fakeUserName = new FakeUserName();
            Message      target       = new Message(fakeUserName, fakeDate);
            string       result       = target.GetHelloMessage();

            Assert.AreEqual("Bonsoir, Toto", result);
        }
Exemple #3
0
        public void BonWETest()
        {
            FakeDate     fakeDate     = new FakeDate(DayOfWeek.Saturday, 12);
            FakeUserName fakeUserName = new FakeUserName();
            Message      target       = new Message(fakeUserName, fakeDate);
            string       result       = target.GetHelloMessage();

            Assert.AreEqual("Bon W.-E. Toto", result);
        }
Exemple #4
0
        public void LaNuitLeMatinTest()
        {
            //init
            FakeDate     fakeDate     = new FakeDate(DayOfWeek.Monday, 7);
            FakeUserName fakeUserName = new FakeUserName();
            Message      target       = new Message(fakeUserName, fakeDate);
            //action
            string result = target.GetHelloMessage();

            //assertion
            Assert.AreEqual("Bonsoir, Toto", result);
        }