You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
using System; |
|
using ICSharpCode.SharpDevelop; |
|
using NUnit.Framework; |
|
|
|
namespace ICSharpCode.NAnt.Tests |
|
{ |
|
[TestFixture] |
|
public class ReadOnlyPropertyNAntOutputTestFixture |
|
{ |
|
[Test] |
|
public void Parse085() |
|
{ |
|
TaskCollection tasks = NAntOutputParser.Parse(GetNAntOutput()); |
|
|
|
Assert.AreEqual(1, tasks.Count, "Should be one task."); |
|
|
|
SDTask task = tasks[0]; |
|
|
|
Assert.IsNull(task.FileName, "Task filename is incorrect."); |
|
Assert.AreEqual(TaskType.Warning, task.TaskType, "Should be a warning task."); |
|
Assert.AreEqual(0, task.Line, "Incorrect line number."); |
|
Assert.AreEqual(0, task.Column, "Incorrect col number."); |
|
Assert.AreEqual("Read-only property \"debug\" cannot be overwritten.", |
|
task.Description, |
|
"Task description is wrong."); |
|
} |
|
|
|
string GetNAntOutput() |
|
{ |
|
return "Buildfile: file:///C:/Projects/dotnet/Corsavy/SharpDevelop/src/SharpDevelop.build\r\n" + |
|
"Target(s) specified: clean \r\n" + |
|
"\r\n" + |
|
" [property] Read-only property \"debug\" cannot be overwritten.\r\n" + |
|
"\r\n" + |
|
"clean:\r\n" + |
|
"\r\n" + |
|
"\r\n" + |
|
"CallBuildfiles"; |
|
} |
|
} |
|
}
|
|
|