Beispiel #1
0
        public void InitializationWithTestData()
        {
            Employee emp = new Employee();
            FakeObjectSet <Employee> set = new FakeObjectSet <Employee>(new Employee[] { emp });

            Assert.IsTrue(set.Contains(emp), "Constructor did not add supplied Employees to public Enumerator.");
        }
Beispiel #2
0
 public void Detach()
 {
     Employee emp = new Employee();
     FakeObjectSet<Employee> set = new FakeObjectSet<Employee>(new Employee[] { emp });
     set.Detach(emp);
     Assert.IsFalse(set.Contains(emp), "Detach did not remove supplied Employees to public Enumerator.");
 }
Beispiel #3
0
 public void Attach()
 {
     Employee emp = new Employee();
     FakeObjectSet<Employee> set = new FakeObjectSet<Employee>();
     set.Attach(emp);
     Assert.IsTrue(set.Contains(emp), "Attach did not add supplied Employees to public Enumerator.");
 }
Beispiel #4
0
        public void Detach()
        {
            Employee emp = new Employee();
            FakeObjectSet <Employee> set = new FakeObjectSet <Employee>(new Employee[] { emp });

            set.Detach(emp);
            Assert.IsFalse(set.Contains(emp), "Detach did not remove supplied Employees to public Enumerator.");
        }
Beispiel #5
0
        public void Attach()
        {
            Employee emp = new Employee();
            FakeObjectSet <Employee> set = new FakeObjectSet <Employee>();

            set.Attach(emp);
            Assert.IsTrue(set.Contains(emp), "Attach did not add supplied Employees to public Enumerator.");
        }
Beispiel #6
0
 public void InitializationWithTestData()
 {
     Employee emp = new Employee();
     FakeObjectSet<Employee> set = new FakeObjectSet<Employee>(new Employee[] { emp });
     Assert.IsTrue(set.Contains(emp), "Constructor did not add supplied Employees to public Enumerator.");
 }