public void TestGetTemplateArgumentsNestedOneTwo() { var result = TypeAliases.GetTemplateArguments("Windows.Foundation.Collections.IVector`1<Windows.Foundation.Collections.IMap`2<System.Int32,System.Int32>>"); Assert.IsNotNull(result); Assert.AreEqual(1, result.Length); Assert.AreEqual("Windows.Foundation.Collections.IMap`2<System.Int32,System.Int32>", result[0]); }
public void TestGetTemplateArgumentsHandleSpaces() { var result = TypeAliases.GetTemplateArguments("Windows.Foundation.Collections.IMap`2< Windows.Foundation.Collections.IVector`1<System.Int32>, Windows.Foundation.Collections.IVector`1<System.Int32> >"); Assert.IsNotNull(result); Assert.AreEqual(2, result.Length); Assert.AreEqual("Windows.Foundation.Collections.IVector`1<System.Int32>", result[0]); Assert.AreEqual("Windows.Foundation.Collections.IVector`1<System.Int32>", result[1]); }