Skip to content

Commit 9d494eb

Browse files
committed
R: move test utilities into a Utilities namespace, add ConsoleAssertions
1 parent 79e351c commit 9d494eb

34 files changed

+87
-58
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,6 @@ _ReSharper.*/
149149
buildlog.txt
150150
nCrunchTemp*
151151
TestResults/
152+
153+
.fake
154+
.ionide

src/System.CommandLine.DragonFruit.Tests/ConfigureFromMethodTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
using System.CommandLine.Invocation;
77
using System.CommandLine.IO;
88
using System.CommandLine.Parsing;
9-
using System.CommandLine.Tests;
109
using System.CommandLine.Tests.Binding;
10+
using System.CommandLine.Tests.Utility;
1111
using System.IO;
1212
using FluentAssertions;
1313
using System.Linq;

src/System.CommandLine.Rendering.Tests/ConsoleRendererTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using static System.Environment;
1313
using System.CommandLine.Rendering.Views;
1414
using System.CommandLine.Tests;
15+
using System.CommandLine.Tests.Utility;
1516

1617
namespace System.CommandLine.Rendering.Tests
1718
{

src/System.CommandLine.Rendering.Tests/TableRenderingTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using Xunit.Abstractions;
1010
using System.CommandLine.Rendering.Views;
1111
using System.CommandLine.Tests;
12+
using System.CommandLine.Tests.Utility;
1213
using static System.Environment;
1314

1415
namespace System.CommandLine.Rendering.Tests

src/System.CommandLine.Rendering.Tests/TerminalModeTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.CommandLine.IO;
77
using System.CommandLine.Parsing;
88
using System.CommandLine.Tests;
9+
using System.CommandLine.Tests.Utility;
910
using System.Threading.Tasks;
1011
using FluentAssertions;
1112
using Xunit;

src/System.CommandLine.Rendering.Tests/TestTerminalTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

44
using System.CommandLine.Tests;
5+
using System.CommandLine.Tests.Utility;
56
using System.Drawing;
67
using FluentAssertions;
78
using System.Linq;

src/System.CommandLine.Rendering.Tests/TextSpanVisitorTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
using System.Collections.Generic;
55
using System.CommandLine.Tests;
6+
using System.CommandLine.Tests.Utility;
67
using FluentAssertions;
78
using System.Linq;
89
using Xunit;

src/System.CommandLine.Rendering.Tests/TextStyleRenderingTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) .NET Foundation and contributors. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4-
using System.CommandLine.Tests;
4+
using System.CommandLine.Tests.Utility;
55
using System.Drawing;
66
using FluentAssertions;
77
using Xunit;

src/System.CommandLine.Rendering.Tests/ViewRenderingTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.CommandLine.Parsing;
77
using System.CommandLine.Rendering.Views;
88
using System.CommandLine.Tests;
9+
using System.CommandLine.Tests.Utility;
910
using System.Drawing;
1011
using FluentAssertions;
1112
using Microsoft.Extensions.DependencyInjection;

src/System.CommandLine.Rendering.Tests/Views/ContentViewTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Collections.Generic;
55
using System.CommandLine.Rendering.Views;
66
using System.CommandLine.Tests;
7+
using System.CommandLine.Tests.Utility;
78
using System.Drawing;
89
using FluentAssertions;
910
using Xunit;

0 commit comments

Comments
 (0)