public void ParseQualifiedType_should_handle_basic_name() { var t = SignatureParser.ParseQualifiedType("A"); Assert.Equal("A", t.Name); Assert.Equal("", t.Namespace); }
public void ParseQualifiedType_should_handle_namespace_nested() { var t = SignatureParser.ParseQualifiedType("N.A.B"); Assert.Equal("B", t.Name); Assert.Equal("N.A", t.Namespace); }
public void ParseQualifiedType_should_handle_nested_types(string text) { var t = SignatureParser.ParseQualifiedType(text); Assert.Equal("B", t.Name); Assert.Equal("A", t.DeclaringType.Name); Assert.Equal("N", t.Namespace); }
public void ParseQualifiedType_should_extract_implied_generic_nested() { var t = SignatureParser.ParseQualifiedType("System.Collections.Generic.Dictionary`2.ValueCollection"); Assert.Equal("ValueCollection", t.Name); Assert.Equal("Dictionary`2", t.DeclaringType.Name); Assert.Equal("System.Collections.Generic", t.Namespace); }