Ejemplo n.º 1
0
 public void Before_Each_Test()
 {
     // create a new personclass & fill properties
     VCardMaker.PersonClass Contact = new VCardMaker.PersonClass()
     {
         First_Name = "Melven",
         Middle_Name = "Edgar",
         Last_Name = "Ross",
         Title = "Functionary",
         Organization = "EIEIO",
     };
 }
Ejemplo n.º 2
0
        public void Full_Name_Should_Handle_Middle_Name()
        {
            //Arrange
            VCardMaker.PersonClass Contact = new VCardMaker.PersonClass()
            {
                First_Name = "Melven",
                Middle_Name = "Edgar",
                Last_Name = "Ross",
                Title = "Functionary",
                Organization = "EIEIO",
            };

            //Act
            var result = new VCardMaker.PersonClass().Full_Name_Maker(Contact);
            // Assert
               Assert.AreEqual("Melven Edgar Ross", result);
        }