1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using ICSharpCode.PythonBinding;
6
using ICSharpCode.UnitTesting;
9
namespace PythonBinding.Tests.Testing
12
public class PythonTestResultLineNumberOverflowTestFixture
14
PythonTestResult pythonTestResult;
15
string stackTraceText;
20
TestResult testResult = new TestResult("MyTest");
21
testResult.ResultType = TestResultType.Failure;
22
testResult.Message = "test failed";
25
"Traceback (most recent call last):\r\n" +
26
" File \"d:\\temp\\test\\PyTests\\Tests\\MyClassTest.py\", line 4294967296, in testAssertEquals\r\n" +
27
" self.assertEqual(10, 15, 'wrong size after resize')\r\n" +
28
"AssertionError: wrong size after resize";
30
testResult.StackTrace = stackTraceText;
31
pythonTestResult = new PythonTestResult(testResult);
35
public void StackTraceFilePositionIsEmpty()
37
Assert.IsTrue(pythonTestResult.StackTraceFilePosition.IsEmpty);