コード例 #1
0
            public void GetBasePipeNameLength()
            {
                var path = string.Format(@"q:{0}the{0}path", Path.DirectorySeparatorChar);
                var name = BuildServerConnection.GetBasePipeName(path);

                // We only have ~50 total bytes to work with on mac, so the base path must be small
                Assert.InRange(name.Length, 10, 30);
            }
コード例 #2
0
            public void GetBasePipeNameSlashes()
            {
                var path = string.Format(@"q:{0}the{0}path", Path.DirectorySeparatorChar);
                var name = BuildServerConnection.GetBasePipeName(path);

                Assert.Equal(name, BuildServerConnection.GetBasePipeName(path));
                Assert.Equal(name, BuildServerConnection.GetBasePipeName(path + Path.DirectorySeparatorChar));
                Assert.Equal(name, BuildServerConnection.GetBasePipeName(path + Path.DirectorySeparatorChar + Path.DirectorySeparatorChar));
            }