Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }