Skip to content

Commit

Permalink
check values
Browse files Browse the repository at this point in the history
  • Loading branch information
TyOverby committed Mar 14, 2017
1 parent e806181 commit 29ff190
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ private void TestProperty<T>(Func<CSharpParseOptions, T, CSharpParseOptions> fac
[WorkItem(15358, "https://github.com/dotnet/roslyn/issues/15358")]
public void WithDocumentationModeDoesntChangeFeatures()
{
var po = new CSharpParseOptions().WithFeatures(new[] { new KeyValuePair<string, string>("IOperation", "true") });
Assert.Equal(1, po.Features.Count);
var kvp = new KeyValuePair<string, string>("IOperation", "true");
var po = new CSharpParseOptions().WithFeatures(new[] { kvp });
Assert.Equal(po.Features.AsSingleton(), kvp);
var po2 = po.WithDocumentationMode(DocumentationMode.Diagnose);
Assert.Equal(1, po2.Features.Count);
Assert.Equal(po2.Features.AsSingleton(), kvp);
}


Expand Down

0 comments on commit 29ff190

Please sign in to comment.