public void TestParseMalformedImport() { //Given var import = "osufx://osu./Framework/*"; //Then Assert.Throws <FormatException>(() => ImportNamespaceInfo.Parse(import)); }
public void TestParseInvalidScheme() { //Given var import = "http://osu.Framework/*"; //Then Assert.Throws <NotSupportedException>(() => ImportNamespaceInfo.Parse(import)); }
public void TestParse() { //Given var import = "osufx://osu.Framework/*"; //When var importInfo = ImportNamespaceInfo.Parse(import); //Then Assert.Equal("osu.Framework", importInfo.AssemblyName); Assert.Equal("*", importInfo.ImportPattern); }