public void SplitAndResolveProtocolVerification() { string testPath1 = @"resources://test/Try-some.Unexpected Characters/soemthingelse.file"; string testPath2 = @"file://*****:*****@"http://www.google.com"; string testPath4 = @"assets://some/Asset.fbx"; // Resolve should strip off the resources:// or assets://, but not file:// or http:// Assert.IsFalse(ProtocolUtility.SplitAndResolve(testPath1).Second.StartsWith("resources")); Assert.IsTrue(ProtocolUtility.SplitAndResolve(testPath2).Second.StartsWith("file")); Assert.IsTrue(ProtocolUtility.SplitAndResolve(testPath3).Second.StartsWith("http")); Assert.IsFalse(ProtocolUtility.SplitAndResolve(testPath4).Second.StartsWith("assets")); }