Exemplo n.º 1
0
        public void CreatingPersonHasBlueEyes()
        {
            // 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.GetEyeColour();

            Assert.AreEqual(eyeColour, actual, string.Format("Eye: {0} does not equal {1}", eyeColour, actual));
        }