Beispiel #1
0
        public void CreateFirstname_WithValue()
        {
            string expected = "Liam";
            string actual   = NameHelper.CreateFirstnameFromContact(_value);

            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
 public void CreateFirstname_WithoutValue()
 {
     try
     {
         string actual = NameHelper.CreateFirstnameFromContact(_noValue);
         Assert.AreEqual(actual, string.Empty);
     }
     catch (Exception ex) { Assert.Fail(ex.Message); }
 }
Beispiel #3
0
 public void CreateFirstname_FromFirstnameStringWithMiddleName()
 {
     try
     {
         string actual   = NameHelper.CreateFirstnameFromContact("Liam John");
         string expected = "Liam";
         Assert.AreEqual(expected, actual);
     }
     catch (Exception ex) { Assert.Fail(ex.Message); }
 }