public void ReduceTypeName_UnbalancedDocs_NotRecoverable_ReturnsOriginalContent(string content) { // Arrange // Act var reduced = DefaultTagHelperTooltipFactory.ReduceTypeName(content); // Assert Assert.Equal(content, reduced); }
public void ReduceTypeName_NestedGenerics() { // Arrange var content = "Microsoft.AspNetCore.SometTagHelpers.SomeType<Foo.Bar<Baz.Phi>>"; // Act var reduced = DefaultTagHelperTooltipFactory.ReduceTypeName(content); // Assert Assert.Equal("SomeType<Foo.Bar<Baz.Phi>>", reduced); }
public void ReduceTypeName_CrefGenerics() { // Arrange var content = "System.Collections.Generic.List{System.String}"; // Act var reduced = DefaultTagHelperTooltipFactory.ReduceTypeName(content); // Assert Assert.Equal("List{System.String}", reduced); }
public void ReduceTypeName_Plain() { // Arrange var content = "Microsoft.AspNetCore.SomeTagHelpers.SomeTypeName"; // Act var reduced = DefaultTagHelperTooltipFactory.ReduceTypeName(content); // Assert Assert.Equal("SomeTypeName", reduced); }