public void TestCopyInner() { var atom1 = LaTeXSettings.Placeholder; var atom2 = LaTeXSettings.Times; var atom3 = LaTeXSettings.Divide; var list = new MathList(atom1, atom2, atom3); var inner = new Inner( new Boundary("("), list, new Boundary(")") ); Assert.IsType <Inner>(inner); var copy = inner.Clone(false); CheckClone(inner, copy); CheckClone(inner.InnerList, copy.InnerList); }
public object Clone() => new TestDocument( id: Id, inner: Inner.Clone().OfType <InnerDocument>(), version: Version, updatedOn: UpdatedOn);
public LuaParam clone() { return(new LuaParam(Inner.Clone())); }