コード例 #1
0
 public void Approval_FullnameIsFirstnameAndLastname()
 {
     var customer = new Customer
     {
         Firstname = "Bartx",
         Lastname = "Simpson"
     };
     Approvals.Verify(customer.Fullname() + Environment.NewLine);
 }
コード例 #2
0
        public void FullnameIsFirstnameAndLastname()
        {
            var customer = new Customer
            {
                Firstname = "Bart",
                Lastname = "Simpson"
            };

            Assert.AreEqual("Bart Simpson",customer.Fullname());
        }