public void Create() { Production p1 = new Production(); Production p2 = new Production(); Nonterminal nt = new Nonterminal(p1, p2); Assert.AreEqual(2, nt.Count); Assert.IsTrue(nt.Contains(p1) && nt.Contains(p2)); }
public void Add() { Nonterminal nt = new Nonterminal(); Production p = new Production(); nt.Add(p); Assert.IsTrue(nt.Contains(p)); }