public virtual void TestCloneIsSparseWhenPossible() { TreeFilter a = TreeFilter.ALL; NUnit.Framework.Assert.AreSame(a, a.Clone()); TreeFilter n = NotTreeFilter.Create(a); NUnit.Framework.Assert.AreSame(n, n.Clone()); }
public virtual void TestCloneIsDeepClone() { TreeFilter a = new AlwaysCloneTreeFilter(); NUnit.Framework.Assert.AreNotSame(a, a.Clone()); TreeFilter n = NotTreeFilter.Create(a); NUnit.Framework.Assert.AreNotSame(n, n.Clone()); }
public override TreeFilter Clone() { TreeFilter n = a.Clone(); return(n == a ? this : new NGit.Treewalk.Filter.NotTreeFilter(n)); }
public override TreeFilter Clone() { return(new OrTreeFilter.Binary(a.Clone(), b.Clone())); }