Exemplo n.º 1
0
        public void CreatingPersonHasBlondeHair()
        {
            // arrange
            var name       = "Sean";
            var age        = 30;
            var eyeColour  = "Blue";
            var hairColour = "Blonde";

            // act - creating a person testing the constructor
            Person person = new Person(name, age, eyeColour, hairColour);

            // assert
            var actual = person.GetHairColour();

            Assert.AreEqual(hairColour, actual, string.Format("Hair Colour: {0} does not equal {1}", hairColour, actual));
        }