Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1067 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
3 changed files with 40 additions and 1 deletions
@ -0,0 +1,38 @@
@@ -0,0 +1,38 @@
|
||||
// <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 ICSharpCode.SharpDevelop.Gui; |
||||
using NUnit.Framework; |
||||
using System; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.Tests |
||||
{ |
||||
[TestFixture] |
||||
public class NUnitOutputParserTestFixture |
||||
{ |
||||
[Test] |
||||
public void Multiline() |
||||
{ |
||||
string output = " at NunitFoo.Tests.FooTest.Foo() in c:\\test\\NunitFoo\\NunitFoo.Tests\\FooTest.cs:line 22\n"; |
||||
FileLineReference lineRef = OutputTextLineParser.GetNUnitOutputFileLineReference(output, true); |
||||
Assert.AreEqual(lineRef.FileName, "c:\\test\\NunitFoo\\NunitFoo.Tests\\FooTest.cs"); |
||||
Assert.AreEqual(21, lineRef.Line); |
||||
Assert.AreEqual(0, lineRef.Column); |
||||
} |
||||
|
||||
[Test] |
||||
public void MultilineWithCarriageReturn() |
||||
{ |
||||
string output = " at NunitFoo.Tests.FooTest.Foo() in c:\\test\\NunitFoo\\NunitFoo.Tests\\FooTest.cs:line 22\r\n"; |
||||
FileLineReference lineRef = OutputTextLineParser.GetNUnitOutputFileLineReference(output, true); |
||||
Assert.AreEqual(lineRef.FileName, "c:\\test\\NunitFoo\\NunitFoo.Tests\\FooTest.cs"); |
||||
Assert.AreEqual(21, lineRef.Line); |
||||
Assert.AreEqual(0, lineRef.Column); |
||||
} |
||||
|
||||
} |
||||
} |
Loading…
Reference in new issue