diff --git a/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/DefaultTagHelperCompletionServiceTest.cs b/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/DefaultTagHelperCompletionServiceTest.cs index a430fa90cb..4e6098eec7 100644 --- a/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/DefaultTagHelperCompletionServiceTest.cs +++ b/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/DefaultTagHelperCompletionServiceTest.cs @@ -23,14 +23,14 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor .BindAttribute(attribute => attribute .Name("visible") .TypeName(typeof(bool).FullName) - .PropertyName("Visible")) + .SetPropertyName("Visible")) .Build(), TagHelperDescriptorBuilder.Create("StyleTagHelper", "TestAssembly") .TagMatchingRule(rule => rule.RequireTagName("*")) .BindAttribute(attribute => attribute .Name("class") .TypeName(typeof(string).FullName) - .PropertyName("Class")) + .SetPropertyName("Class")) .Build(), }; var expectedCompletions = AttributeCompletionResult.Create(new Dictionary>() @@ -112,11 +112,11 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor .BindAttribute(attribute => attribute .Name("repeat") .TypeName(typeof(bool).FullName) - .PropertyName("Repeat")) + .SetPropertyName("Repeat")) .BindAttribute(attribute => attribute .Name("visible") .TypeName(typeof(bool).FullName) - .PropertyName("Visible")) + .SetPropertyName("Visible")) .Build(), TagHelperDescriptorBuilder.Create("StyleTagHelper", "TestAssembly") .TagMatchingRule(rule => rule @@ -125,7 +125,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor .BindAttribute(attribute => attribute .Name("class") .TypeName(typeof(string).FullName) - .PropertyName("Class")) + .SetPropertyName("Class")) .Build(), }; var expectedCompletions = AttributeCompletionResult.Create(new Dictionary>() @@ -163,11 +163,11 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor .BindAttribute(attribute => attribute .Name("repeat") .TypeName(typeof(bool).FullName) - .PropertyName("Repeat")) + .SetPropertyName("Repeat")) .BindAttribute(attribute => attribute .Name("visible") .TypeName(typeof(bool).FullName) - .PropertyName("Visible")) + .SetPropertyName("Visible")) .Build(), TagHelperDescriptorBuilder.Create("StyleTagHelper", "TestAssembly") .TagMatchingRule(rule => rule @@ -176,14 +176,14 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor .BindAttribute(attribute => attribute .Name("class") .TypeName(typeof(string).FullName) - .PropertyName("Class")) + .SetPropertyName("Class")) .Build(), TagHelperDescriptorBuilder.Create("StyleTagHelper", "TestAssembly") .TagMatchingRule(rule => rule.RequireTagName("*")) .BindAttribute(attribute => attribute .Name("visible") .TypeName(typeof(bool).FullName) - .PropertyName("Visible")) + .SetPropertyName("Visible")) .Build(), }; var expectedCompletions = AttributeCompletionResult.Create(new Dictionary>() @@ -226,7 +226,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor .BindAttribute(attribute => attribute .Name("repeat") .TypeName(typeof(bool).FullName) - .PropertyName("Repeat")) + .SetPropertyName("Repeat")) .TagOutputHint("div") .Build(), }; @@ -261,7 +261,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor .BindAttribute(attribute => attribute .Name("repeat") .TypeName(typeof(bool).FullName) - .PropertyName("Repeat")) + .SetPropertyName("Repeat")) .Build(), }; var expectedCompletions = AttributeCompletionResult.Create(new Dictionary>() @@ -294,7 +294,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor .BindAttribute(attribute => attribute .Name("repeat") .TypeName(typeof(bool).FullName) - .PropertyName("Repeat")) + .SetPropertyName("Repeat")) .Build(), }; var expectedCompletions = AttributeCompletionResult.Create(new Dictionary>() diff --git a/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/DefaultTagHelperFactsServiceTest.cs b/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/DefaultTagHelperFactsServiceTest.cs index 6f9afac1df..463eff4a68 100644 --- a/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/DefaultTagHelperFactsServiceTest.cs +++ b/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/DefaultTagHelperFactsServiceTest.cs @@ -48,12 +48,12 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor attribute .Name("asp-for") .TypeName(typeof(string).FullName) - .PropertyName("AspFor")) + .SetPropertyName("AspFor")) .BindAttribute(attribute => attribute .Name("asp-route") .TypeName(typeof(IDictionary).Namespace + "IDictionary") - .PropertyName("AspRoute") + .SetPropertyName("AspRoute") .AsDictionary("asp-route-", typeof(string).FullName)) .Build(), TagHelperDescriptorBuilder.Create("TestType", "TestAssembly") @@ -62,7 +62,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor attribute .Name("asp-for") .TypeName(typeof(string).FullName) - .PropertyName("AspFor")) + .SetPropertyName("AspFor")) .Build(), }; var documentContext = TagHelperDocumentContext.Create(string.Empty, documentDescriptors); @@ -94,12 +94,12 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor attribute .Name("asp-for") .TypeName(typeof(string).FullName) - .PropertyName("AspFor")) + .SetPropertyName("AspFor")) .BindAttribute(attribute => attribute .Name("asp-route") .TypeName(typeof(IDictionary).Namespace + "IDictionary") - .PropertyName("AspRoute") + .SetPropertyName("AspRoute") .AsDictionary("asp-route-", typeof(string).FullName)) .Build() }; @@ -130,12 +130,12 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor attribute .Name("asp-for") .TypeName(typeof(string).FullName) - .PropertyName("AspFor")) + .SetPropertyName("AspFor")) .BindAttribute(attribute => attribute .Name("asp-extra") .TypeName(typeof(string).FullName) - .PropertyName("AspExtra")) + .SetPropertyName("AspExtra")) .Build() }; var expectedAttributeDescriptors = new[] diff --git a/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Microsoft.VisualStudio.LanguageServices.Razor.Test.csproj b/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Microsoft.VisualStudio.LanguageServices.Razor.Test.csproj index 2e9ae773ac..cb7dcb24ca 100644 --- a/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Microsoft.VisualStudio.LanguageServices.Razor.Test.csproj +++ b/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Microsoft.VisualStudio.LanguageServices.Razor.Test.csproj @@ -24,7 +24,6 @@ - diff --git a/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/TagHelperDescriptorSerializationTest.cs b/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/TagHelperDescriptorSerializationTest.cs index 169f69fd58..f99eca8578 100644 --- a/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/TagHelperDescriptorSerializationTest.cs +++ b/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/TagHelperDescriptorSerializationTest.cs @@ -24,7 +24,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor { builder => builder .Name("test-attribute") - .PropertyName("TestAttribute") + .SetPropertyName("TestAttribute") .TypeName("string"), }, ruleBuilders: new Action[] @@ -67,7 +67,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor { builder => builder .Name("test-attribute") - .PropertyName("TestAttribute") + .SetPropertyName("TestAttribute") .TypeName("string"), }, ruleBuilders: new Action[] @@ -112,13 +112,13 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor { builder => builder .Name("test-attribute") - .PropertyName("TestAttribute") + .SetPropertyName("TestAttribute") .TypeName("SomeEnum") .AsEnum() .Documentation("Summary"), builder => builder .Name("test-attribute2") - .PropertyName("TestAttribute2") + .SetPropertyName("TestAttribute2") .TypeName("SomeDictionary") .AsDictionary("dict-prefix-", "string"), }, @@ -154,7 +154,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor Action configureAction = null) { var builder = TagHelperDescriptorBuilder.Create(typeName, assemblyName); - builder.TypeName(typeName); + builder.SetTypeName(typeName); if (attributes != null) {