public void ParseYieldStatementTest() { //Create parser StatementParser statementParser = new StatementParser(Init("yield;")); YieldStatement parsedYield = statementParser.ParseYieldStatement(); //Test yield instance Assert.AreEqual(typeof(YieldStatement), parsedYield.GetType()); Assert.AreEqual("yield;", parsedYield.ToString()); }