Пример #1
0
        public void CorporaterEarnMoneyAreEqual()
        {
            string     constResult = "Получаем в конце месяца зарплату";
            Programmer programmer  = new Corporater(null);
            string     result;

            result = programmer.EarnMoney();

            Assert.AreEqual(constResult, result);
        }
Пример #2
0
        public void CorporaterMainAreEqual()
        {
            ILanguage  language    = new CSharpLanguage();
            Programmer programmer  = new Corporater(language);
            string     constResult = string.Format("Работа:{0}{1}Оплата{2}{1}", programmer.DoWork(), Environment.NewLine, programmer.EarnMoney());
            string     result;

            result = B_Example.Instance.Main(false, language);

            Assert.AreEqual(constResult, result);
        }