public void SplitProtocolVerification() { string testPath1 = @"resources://test/Try-some.Unexpected Characters/soemthingelse.file"; string testPath2 = @"file://*****:*****@"http://www.google.com"; Assert.IsTrue(ProtocolUtility.SplitProtocol(testPath1).First == "resources"); Assert.IsTrue(ProtocolUtility.SplitProtocol(testPath1).Second == "test/Try-some.Unexpected Characters/soemthingelse.file"); Assert.IsTrue(ProtocolUtility.SplitProtocol(testPath2).First == "file"); Assert.IsTrue(ProtocolUtility.SplitProtocol(testPath2).Second == "C:/Windows/System32/"); Assert.IsTrue(ProtocolUtility.SplitProtocol(testPath3).First == "http"); Assert.IsTrue(ProtocolUtility.SplitProtocol(testPath3).Second == "www.google.com"); }