Пример #1
0
        public void ReturnCorrectToString_WhenToStringIsCalled()
        {
            var dog = new Dog("Sharo");

            dog.AddSupplement(new AggressionCatalyst());
            dog.AddSupplement(new PowerCatalyst());

            string expected =
                "Dog Sharo (Biological) [Health: 4, Power: 8, Aggression: 5, Supplements: [AggressionCatalyst, PowerCatalyst]]";

            Assert.AreEqual(expected, dog.ToString());
        }