예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }