コード例 #1
0
 public void add_and_get_customers_sort_by_name()
 {
     EfMethods.AddCustomer("Justine");
     EfMethods.AddCustomer("Agnes");
     EfMethods.AddCustomer("Emma");
     string[] result = EfMethods.GetAllCustomerNamesSorted();
     CollectionAssert.AreEqual(new[] { "Agnes", "Emma", "Justine" }, result);
 }
コード例 #2
0
        public void add_and_get_customers()
        {
            EfMethods.AddCustomer("Justine");
            string[] result = EfMethods.GetAllCustomerNames();
            CollectionAssert.AreEqual(new[] { "Justine" }, result);

            EfMethods.AddCustomer("Agnes");
            string[] result2 = EfMethods.GetAllCustomerNames();
            CollectionAssert.AreEqual(new[] { "Justine", "Agnes" }, result2);
        }