Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3001 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
3 changed files with 47 additions and 2 deletions
@ -0,0 +1,42 @@
@@ -0,0 +1,42 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using ICSharpCode.PythonBinding; |
||||
using ICSharpCode.SharpDevelop.Dom; |
||||
using NUnit.Framework; |
||||
using PythonBinding.Tests; |
||||
|
||||
namespace PythonBinding.Tests.Parsing |
||||
{ |
||||
/// <summary>
|
||||
/// Tests that the python parser does not throw an exception
|
||||
/// when the last parameter is missing from a method.
|
||||
/// </summary>
|
||||
[TestFixture] |
||||
public class MissingLastParameterFromMethodTestFixture |
||||
{ |
||||
ICompilationUnit compilationUnit; |
||||
|
||||
[TestFixtureSetUp] |
||||
public void SetUpFixture() |
||||
{ |
||||
string python = "class Class1:\r\n" + |
||||
" def method(arg1,arg2,"; |
||||
|
||||
DefaultProjectContent projectContent = new DefaultProjectContent(); |
||||
PythonParser parser = new PythonParser(); |
||||
compilationUnit = parser.Parse(projectContent, @"C:\test.py", python); |
||||
} |
||||
|
||||
[Test] |
||||
public void CompilationUnitIsNotNull() |
||||
{ |
||||
Assert.IsNotNull(compilationUnit); |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue