AppSecInc.ProcessDomain.UnitTests.TestProcessDomain.TestAssemblyUtils C# (CSharp) Method

TestAssemblyUtils() private method

private TestAssemblyUtils ( ) : void
return void
        public void TestAssemblyUtils()
        {
            string uriPathUnescaped = "file:///c:/somepath/i have spaces";
            string uriPathEscaped = "file:///c:/somepath/i%20have%20spaces";
            string forwardSlashPath = "c:/somepath/i have spaces";
            string path = @"c:\somepath\i have spaces";

            Assert.That(AssemblyUtils.GetFilePathFromFileUri(path), Is.EqualTo(path));
            Assert.That(AssemblyUtils.GetFilePathFromFileUri(forwardSlashPath), Is.EqualTo(path));
            Assert.That(AssemblyUtils.GetFilePathFromFileUri(uriPathUnescaped), Is.EqualTo(path));
            Assert.That(AssemblyUtils.GetFilePathFromFileUri(uriPathEscaped), Is.EqualTo(path));
        }