public void ReduceMemberName_UnbalancedDocs_NotRecoverable_ReturnsOriginalContent(string content) { // Arrange // Act var reduced = TagHelperTooltipFactoryBase.ReduceMemberName(content); // Assert Assert.Equal(content, reduced); }
public void ReduceMemberName_Generics() { // Arrange var content = "Microsoft.AspNetCore.SometTagHelpers.SomeType<Foo.Bar>.SomeProperty<Foo.Bar>"; // Act var reduced = TagHelperTooltipFactoryBase.ReduceMemberName(content); // Assert Assert.Equal("SomeType<Foo.Bar>.SomeProperty<Foo.Bar>", reduced); }
public void ReduceMemberName_NestedGenericsMethodsTypes() { // Arrange var content = "Microsoft.AspNetCore.SometTagHelpers.SomeType<Foo.Bar<Baz,Fi>>.SomeMethod(Foo.Bar<System.String>,Baz<Something>.Fi)"; // Act var reduced = TagHelperTooltipFactoryBase.ReduceMemberName(content); // Assert Assert.Equal("SomeType<Foo.Bar<Baz,Fi>>.SomeMethod(Foo.Bar<System.String>,Baz<Something>.Fi)", reduced); }