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); }
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); } }
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); } }
public void TearDown() { m_fileName = null; m_gd = null; m_otherTop = null; }
public void Init() { m_fileName = MakeFile(); m_gd = GAFAWSData.Create(); m_otherTop = new Other(); }
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); } }
public void AddOtherToGAFAWSData() { try { m_gd.Other = m_otherTop; AddOtherContents(); m_otherTop = m_gd.Other; CheckOtherContents(); } finally { DeleteFile(m_fileName); } }