Exemple #1
0
        public void BranchLockPolicyCreateSmokeTest2()
        {
            TfvcBranchPolicy bp = new TfvcBranchPolicy();

            bp.Initialize(null);
            Assert.IsNotNull(bp);
        }
 public void BranchPolicuSerilizationTest()
 {
     TfvcBranchPolicy bp = new TfvcBranchPolicy();
     bp.Initialize(null);
     bp.branchPatterns = new List<BranchPattern>();
     bp.branchPatterns.Add(new BranchPattern("^.*"));
     BinaryFormatter bf = bp.GetBinaryFormatter();
     Stream stream = new MemoryStream();
     bf.Serialize(stream, bp);
     stream.Position= 0;
     bf.Deserialize(stream);
     Assert.IsNotNull(bp);
 }
Exemple #3
0
        public void BranchPolicuSerilizationTest()
        {
            TfvcBranchPolicy bp = new TfvcBranchPolicy();

            bp.Initialize(null);
            bp.branchPatterns = new List <BranchPattern>();
            bp.branchPatterns.Add(new BranchPattern("^.*"));
            BinaryFormatter bf     = bp.GetBinaryFormatter();
            Stream          stream = new MemoryStream();

            bf.Serialize(stream, bp);
            stream.Position = 0;
            bf.Deserialize(stream);
            Assert.IsNotNull(bp);
        }
 public void BranchLockPolicyCreateSmokeTest2()
 {
     TfvcBranchPolicy bp = new TfvcBranchPolicy();
     bp.Initialize(null);
     Assert.IsNotNull(bp);
 }