예제 #1
0
        public void removeAllTest()
        {
            Viewer2_Accessor view = new Viewer2_Accessor();

            Assert.IsTrue(view.getCurrentAddressbook().Contacts.Count > 0);
            view.removeAll();
            Assert.IsTrue(view.getCurrentAddressbook().Contacts.Count == 0);
        }
예제 #2
0
        public void copyAll_ClickTest()
        {
            Viewer2_Accessor view     = new Viewer2_Accessor();
            List <Contact>   contacts = view.getCurrentAddressbook().Contacts;

            view.copyAllCombo.Text = "sample2";
            view.copyAll();
            foreach (Contact c in contacts)
            {
                Assert.IsTrue(view.getAddressbook("sample2").Contacts.Contains(c));
            }
        }