Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 5d4cded

Browse files
committed
Fix NAnt addin sample.
1 parent 4de6c0c commit 5d4cded

24 files changed

Lines changed: 445 additions & 355 deletions

samples/NAnt/NAnt.AddIn.Tests/CscNAntOutputTestFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public void ParseError085()
1919
Assert.AreEqual(3, tasks.Count, "Should be three tasks.");
2020

2121
// First task.
22-
Task task = tasks[0];
22+
SDTask task = tasks[0];
2323
Assert.AreEqual("c:\\Projects\\dotnet\\Test\\corsavytest\\Foo.cs", task.FileName.ToString(), "Task filename is incorrect.");
2424
Assert.AreEqual(34, task.Line, "Task line is incorrect.");
2525
Assert.AreEqual(4, task.Column, "Task column is incorrect.");
@@ -57,7 +57,7 @@ public void ParseWarning085()
5757
Assert.AreEqual(1, tasks.Count, "Should be three tasks.");
5858

5959
// First task.
60-
Task task = tasks[0];
60+
SDTask task = tasks[0];
6161
Assert.AreEqual("c:\\Projects\\dotnet\\Test\\corsavytest\\Foo.cs", task.FileName.ToString(), "Task filename is incorrect.");
6262
Assert.AreEqual(39, task.Line, "Task line is incorrect.");
6363
Assert.AreEqual(12, task.Column, "Task column is incorrect.");

samples/NAnt/NAnt.AddIn.Tests/FatalErrorNAntOutputTestFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public void ParseCscError085()
1919

2020
Assert.AreEqual(2, tasks.Count, "Should be two tasks.");
2121

22-
Task task = tasks[0];
22+
SDTask task = tasks[0];
2323

2424
Assert.IsNull(task.FileName, "Task filename should be blank.");
2525
Assert.AreEqual(TaskType.Error, task.TaskType, "Should be an error task.");
@@ -46,7 +46,7 @@ public void ParseVBError085()
4646

4747
Assert.AreEqual(3, tasks.Count, "Should be three tasks.");
4848

49-
Task task = tasks[0];
49+
SDTask task = tasks[0];
5050

5151
Assert.IsNull(task.FileName, "Task filename should be blank.");
5252
Assert.AreEqual(TaskType.Error, task.TaskType, "Should be an error task.");

samples/NAnt/NAnt.AddIn.Tests/InvalidXmlNAntOutputTestFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public void Parse085()
1717

1818
Assert.AreEqual(1, tasks.Count, "Should be one task.");
1919

20-
Task task = tasks[0];
20+
SDTask task = tasks[0];
2121
Assert.AreEqual(@"C:\Projects\foo\foo.build", task.FileName.ToString(), "Task filename is incorrect.");
2222
Assert.AreEqual(7, task.Line, "Task line is incorrect.");
2323
Assert.AreEqual(5, task.Column, "Task column is incorrect.");

samples/NAnt/NAnt.AddIn.Tests/NAnt.AddIn.Tests.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
<OutputPath>bin\</OutputPath>
2222
<DebugSymbols>true</DebugSymbols>
2323
<Optimize>False</Optimize>
24-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
24+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
25+
<TargetFrameworkProfile />
2526
</PropertyGroup>
2627
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2728
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>

samples/NAnt/NAnt.AddIn.Tests/NAntErrorAndWarningOutputTestFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public void Parse085()
1717

1818
Assert.AreEqual(2, tasks.Count, "Should be two tasks.");
1919

20-
Task task = tasks[0];
20+
SDTask task = tasks[0];
2121
Assert.AreEqual("C:\\Projects\\dotnet\\Test\\corsavytest\\corsavytest.build", task.FileName.ToString(), "Task filename is incorrect.");
2222
Assert.AreEqual(TaskType.Warning, task.TaskType, "Should be a warning task.");
2323
Assert.AreEqual(5, task.Line, "Incorrect line number.");

samples/NAnt/NAnt.AddIn.Tests/NonFatalErrorNAntOutputTestFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public void Parse085()
1616

1717
Assert.AreEqual(1, tasks.Count, "Should be one task.");
1818

19-
Task task = tasks[0];
19+
SDTask task = tasks[0];
2020

2121
Assert.AreEqual("C:\\Projects\\dotnet\\Corsavy\\SharpDevelop\\src\\StandardAddIn.include", task.FileName.ToString(), "Task filename is incorrect.");
2222
Assert.AreEqual(TaskType.Error, task.TaskType, "Should be a warning task.");

samples/NAnt/NAnt.AddIn.Tests/ReadOnlyPropertyNAntOutputTestFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public void Parse085()
1414

1515
Assert.AreEqual(1, tasks.Count, "Should be one task.");
1616

17-
Task task = tasks[0];
17+
SDTask task = tasks[0];
1818

1919
Assert.IsNull(task.FileName, "Task filename is incorrect.");
2020
Assert.AreEqual(TaskType.Warning, task.TaskType, "Should be a warning task.");

samples/NAnt/NAnt.AddIn.Tests/TargetDoesNotExistNAntOutputTestFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public void Parse085()
1717

1818
Assert.AreEqual(1, tasks.Count, "Should be one task.");
1919

20-
Task task = tasks[0];
20+
SDTask task = tasks[0];
2121
Assert.IsNull(task.FileName, "Should not have any filename information.");
2222
Assert.AreEqual(TaskType.Error, task.TaskType, "Should be an error task.");
2323
Assert.AreEqual(0, task.Line, "Should be line number 0");

samples/NAnt/NAnt.AddIn.Tests/VBErrorNAntOutputTestFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public void Parse085()
1919

2020
Assert.AreEqual(3, tasks.Count, "Should be three tasks.");
2121

22-
Task task = tasks[0];
22+
SDTask task = tasks[0];
2323

2424
Assert.AreEqual("C:\\Projects\\dotnet\\test\\corsavyvbtest\\corsavyvbtest.build", task.FileName.ToString(), "Task filename is incorrect.");
2525
Assert.AreEqual(TaskType.Warning, task.TaskType, "Should be a warning task.");

samples/NAnt/NAnt.AddIn.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 11.00
33
# Visual Studio 2010
4-
# SharpDevelop 4.0.0.5571
4+
# SharpDevelop 4.4
55
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NAnt.AddIn", "NAnt.AddIn\NAnt.AddIn.csproj", "{1DB3CAD2-38E8-4C5E-8E1B-0E37B1A5C006}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NAnt.AddIn.Tests", "NAnt.AddIn.Tests\NAnt.AddIn.Tests.csproj", "{13AB8351-39E5-4F9D-A59C-B30D60CF6B8C}"

0 commit comments

Comments
 (0)