public void TestDeleteNote()
        {
            _TestSingleTon.Instance._SetupForLayoutPanelTests();
            // add a note with specific label
            FAKE_LayoutPanel layoutPanel = new FAKE_LayoutPanel (CoreUtilities.Constants.BLANK, false);
            //FakeLayoutDatabase layout = new FakeLayoutDatabase ("testguid");
            layoutPanel.NewLayout("testguid", true, null);
            NoteDataXML_RichText note = new NoteDataXML_RichText ();
            string guid2find = "";
            NoteDataInterface mynotetogo = null;
            for (int i = 0; i < 1; i++) {
                note.CreateParent(layoutPanel);
                note.Caption = "boo" + i.ToString ();
                note.UpdateLocation();
                guid2find = note.GuidForNote;
                layoutPanel.AddNote (note);
                mynotetogo = note;
            }
            //	layout.SaveTo();
            layoutPanel.SaveLayout();
            _w.output (guid2find);
            Assert.True (layoutPanel.GetLayoutDatabase().IsNoteExistsInLayout (guid2find));
            _w.output("here");
            // then delete it

            layoutPanel.GetLayoutDatabase().RemoveNote(mynotetogo);
            Assert.False (layoutPanel.GetLayoutDatabase().IsNoteExistsInLayout (guid2find));
        }
        public void SaveRequired()
        {
            _setupforlayoutests ();
            int count = 25;
            //FakeLayoutDatabase layout = new FakeLayoutDatabase ("testguid");
            LayoutPanel layoutPanel = new LayoutPanel (CoreUtilities.Constants.BLANK, false);
            layoutPanel.NewLayout("testguid", false, null);
            NoteDataXML_RichText note = new NoteDataXML_RichText ();
            for (int i = 0; i < count; i++) {

                note.Caption = "boo" + i.ToString ();

                layoutPanel.AddNote (note);
                note.CreateParent(layoutPanel);
                note.UpdateLocation();
            }
            //layout.SaveTo();
            Assert.True (layoutPanel.GetSaveRequired);
        }