コード例 #1
0
        public void ToStringTest1()
        {
            string    expected = "0";
            DepotPath dp       = new DepotPath(expected);
            FileSpec  target   = new FileSpec(dp);
            string    actual;

            actual = target.ToString();
            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
        public void ToStringTest2()
        {
            Type      pathType = typeof(DepotPath);        // TODO: Initialize to an appropriate value
            string    expected = "0";
            DepotPath dp       = new DepotPath(expected);
            FileSpec  target   = new FileSpec(dp);
            string    actual;

            actual = target.ToString(pathType);
            Assert.AreEqual(expected, actual);
        }
コード例 #3
0
        public void ToStringTest()
        {
            string   target    = @"C:\workspace@root\test#1%2.txt";
            FileSpec LocalSpec = new FileSpec(null, null, new LocalPath(target), new NoneRevision());

            string expected = @"c:\workspace@root\test#1%2.txt#none";

            string actual = LocalSpec.ToString();

            Assert.AreEqual(expected, actual);
        }