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); }
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); }