void instBody() { string altName = ""; string name = "", type; int count; Expect(14); if (la.kind == 1) { Ident(out name); } Expect(3); if (la.kind == 8) { alterName(out altName); Expect(4); Expect(3); } if (la.kind == 1) { secondBody(); Expect(4); Expect(3); } Expect(15); Ident(out type); transList.addTrans(name, type); while (la.kind == 3) { Get(); EdfBody3(out count); Expect(4); } Expect(4); EdfBody4(out count); }
public void TestMethod() { // TODO: Add your test. Transistors trs = new Transistors(); trs.setNode("nd1"); trs.addTrans("tr1", "MBREAKN_NORMAL"); Dictionary<string, TrUnit> dic1 = trs.getListN(); Assert.AreEqual(7, dic1.Count); }
public void TestMethod() { // TODO: Add your test. Transistors trs = new Transistors(); trs.setNode("nd1"); trs.addTrans("tr1", "MBREAKN_NORMAL"); Dictionary <string, TrUnit> dic1 = trs.getListN(); Assert.AreEqual(7, dic1.Count); }