Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Commit 0521aa9

Browse files
committed
Wrapped long lines & removed left-over file:
- #1553
1 parent 20a0570 commit 0521aa9

File tree

3 files changed

+12
-84
lines changed

3 files changed

+12
-84
lines changed

src/Microsoft.AspNet.Mvc.TagHelpers/EnvironmentTagHelper.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
namespace Microsoft.AspNet.Mvc.TagHelpers
1010
{
1111
/// <summary>
12-
/// <see cref="ITagHelper"/> implementation targeting &lt;environment&gt; elements that conditionally renders content
13-
/// based on the current value of <see cref="IHostingEnvironment.EnvironmentName"/>.
12+
/// <see cref="ITagHelper"/> implementation targeting &lt;environment&gt; elements that conditionally renders
13+
/// content based on the current value of <see cref="IHostingEnvironment.EnvironmentName"/>.
1414
/// </summary>
1515
public class EnvironmentTagHelper : TagHelper
1616
{
@@ -20,7 +20,8 @@ public class EnvironmentTagHelper : TagHelper
2020
/// A comma separated list of environment names in which the content should be rendered.
2121
/// </summary>
2222
/// <remarks>
23-
/// The specified environment names are compared case insensitively to the current value of <see cref="IHostingEnvironment.EnvironmentName"/>.
23+
/// The specified environment names are compared case insensitively to the current value of
24+
/// <see cref="IHostingEnvironment.EnvironmentName"/>.
2425
/// </remarks>
2526
public string Names { get; set; }
2627

@@ -57,7 +58,8 @@ public override void Process(TagHelperContext context, TagHelperOutput output)
5758
return;
5859
}
5960

60-
if (environments.Any(name => string.Equals(name.Trim(), currentEnvironmentName, StringComparison.OrdinalIgnoreCase)))
61+
if (environments.Any(name =>
62+
string.Equals(name.Trim(), currentEnvironmentName, StringComparison.OrdinalIgnoreCase)))
6163
{
6264
// Matching environment name found, do nothing
6365
return;

test/Microsoft.AspNet.Mvc.FunctionalTests/Compiler/Resources/TagHelpersWebSite.Home.Environment.html

Lines changed: 0 additions & 78 deletions
This file was deleted.

test/Microsoft.AspNet.Mvc.TagHelpers.Test/EnvironmentTagHelperTest.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ public void ShowsContentWhenCurrentEnvironmentIsNotSet(string namesAttribute, st
7373
[InlineData("Doesn'tMatchAtAll", "Development")]
7474
[InlineData("Development and a space", "Development")]
7575
[InlineData("Development and a space,SomethingElse", "Development")]
76-
public void DoesNotShowContentWhenCurrentEnvironmentIsNotSpecified(string namesAttribute, string environmentName)
76+
public void DoesNotShowContentWhenCurrentEnvironmentIsNotSpecified(
77+
string namesAttribute,
78+
string environmentName)
7779
{
7880
// Arrange
7981
var content = "content";
@@ -126,7 +128,9 @@ private void ShouldShowContent(string namesAttribute, string environmentName)
126128
Assert.False(output.ContentSet);
127129
}
128130

129-
private TagHelperContext MakeTagHelperContext(IDictionary<string, object> attributes = null, string content = null)
131+
private TagHelperContext MakeTagHelperContext(
132+
IDictionary<string, object> attributes = null,
133+
string content = null)
130134
{
131135
attributes = attributes ?? new Dictionary<string, object>();
132136

0 commit comments

Comments
 (0)