Exemple #1
0
		public void AddOtherContents()
		{
			m_anyTop = m_otherTop.XmlElements;
			Assert.IsNotNull(m_anyTop);
			XmlDocument doc = new XmlDocument();
			m_xe = doc.CreateElement("MyStuff");
			string name = m_xe.Name;
			m_xe.SetAttribute("val", "true");
			m_anyTop.Add(m_xe);
			XmlElement xeys = doc.CreateElement("YourStuff");
			xeys.SetAttribute("ID", "YS1");
			m_xe.AppendChild(xeys);
			m_gd.SaveData(m_fileName);

			m_otherTop = null;
			m_anyTop = null;
			m_gd = null;

			// Make sure it is there.
			m_gd = GAFAWSData.LoadData(m_fileName);
		}
Exemple #2
0
        public void AddOtherToStem()
        {
            try
            {
                WordRecord wr = new WordRecord();
                m_gd.WordRecords.Add(wr);
                Stem stem = new Stem();
                wr.Stem    = stem;
                stem.Other = m_otherTop;

                AddOtherContents();

                m_otherTop = m_gd.WordRecords[0].Stem.Other;

                CheckOtherContents();
            }
            finally
            {
                DeleteFile(m_fileName);
            }
        }
Exemple #3
0
        public void AddOtherToAffix()
        {
            try
            {
                WordRecord wr = new WordRecord();
                m_gd.WordRecords.Add(wr);
                wr.Prefixes = new List <Affix>();
                Affix afx = new Affix();
                wr.Prefixes.Add(afx);

                afx.Other = m_otherTop;

                AddOtherContents();

                m_otherTop = m_gd.WordRecords[0].Prefixes[0].Other;

                CheckOtherContents();
            }
            finally
            {
                DeleteFile(m_fileName);
            }
        }
Exemple #4
0
        public void AddOtherContents()
        {
            m_anyTop = m_otherTop.XmlElements;
            Assert.IsNotNull(m_anyTop);
            XmlDocument doc = new XmlDocument();

            m_xe = doc.CreateElement("MyStuff");
            string name = m_xe.Name;

            m_xe.SetAttribute("val", "true");
            m_anyTop.Add(m_xe);
            XmlElement xeys = doc.CreateElement("YourStuff");

            xeys.SetAttribute("ID", "YS1");
            m_xe.AppendChild(xeys);
            m_gd.SaveData(m_fileName);

            m_otherTop = null;
            m_anyTop   = null;
            m_gd       = null;

            // Make sure it is there.
            m_gd = GAFAWSData.LoadData(m_fileName);
        }
Exemple #5
0
 public void TearDown()
 {
     m_fileName = null;
     m_gd       = null;
     m_otherTop = null;
 }
Exemple #6
0
 public void Init()
 {
     m_fileName = MakeFile();
     m_gd       = GAFAWSData.Create();
     m_otherTop = new Other();
 }
Exemple #7
0
		public void TearDown()
		{
			m_fileName = null;
			m_gd = null;
			m_otherTop = null;
		}
Exemple #8
0
		public void Init()
		{
			m_fileName = MakeFile();
			m_gd = GAFAWSData.Create();
			m_otherTop = new Other();
		}
Exemple #9
0
		public void AddOtherToAffix()
		{
			try
			{
				WordRecord wr = new WordRecord();
				m_gd.WordRecords.Add(wr);
				wr.Prefixes = new List<Affix>();
				Affix afx = new Affix();
				wr.Prefixes.Add(afx);

				afx.Other = m_otherTop;

				AddOtherContents();

				m_otherTop = m_gd.WordRecords[0].Prefixes[0].Other;

				CheckOtherContents();
			}
			finally
			{
				DeleteFile(m_fileName);
			}
		}
Exemple #10
0
		public void AddOtherToStem()
		{
			try
			{
				WordRecord wr = new WordRecord();
				m_gd.WordRecords.Add(wr);
				Stem stem = new Stem();
				wr.Stem = stem;
				stem.Other = m_otherTop;

				AddOtherContents();

				m_otherTop = m_gd.WordRecords[0].Stem.Other;

				CheckOtherContents();
			}
			finally
			{
				DeleteFile(m_fileName);
			}
		}
Exemple #11
0
		public void AddOtherToGAFAWSData()
		{
			try
			{
				m_gd.Other = m_otherTop;

				AddOtherContents();

				m_otherTop = m_gd.Other;

				CheckOtherContents();
			}
			finally
			{
				DeleteFile(m_fileName);
			}
		}