Beispiel #1
0
        public override void ExitTestListName([NotNull] SBP.TestListNameContext context)
        {
            var name = context.GetText();

            m_currentTestList.SetName(m_currentNamespace, name);
            var existing = m_file.ListElements().Where(e => e.ElementType == FileElementType.TestList).FirstOrDefault(tl => tl.Name.Equals(name));

            if (existing != null)
            {
                m_currentTestList = existing as FileTestList;
            }
            else
            {
                m_file.AddTestList(m_currentTestList);
            }
            m_currentFileElement = m_currentTestList;
        }
Beispiel #2
0
 public override void ExitTestListName([NotNull] SBP.TestListNameContext context)
 {
     m_name = context.GetText();
 }