public void MultiLookup_Clone() { var mockedInvoker = new Mock <ISubdocInvoker>(); var builder = new LookupInBuilder <dynamic>(mockedInvoker.Object, () => new DefaultSerializer(), "thekey"); builder.Get("pathone"); builder.Get("pathtwo"); var op = new MultiLookup <dynamic>("thekey", builder, new Mock <IVBucket>().Object, new Mock <ITypeTranscoder>().Object, 10) { Cas = 100 }; var cloned = (MultiLookup <dynamic>)op.Clone(); Assert.AreEqual(op, cloned); }
public void MultiLookup_Clone() { var mockedInvoker = new Mock<ISubdocInvoker>(); var builder = new LookupInBuilder<dynamic>(mockedInvoker.Object, () => new DefaultSerializer(), "thekey"); builder.Get("pathone"); builder.Get("pathtwo"); var op = new MultiLookup<dynamic>("thekey", builder, new Mock<IVBucket>().Object, new Mock<ITypeTranscoder>().Object, 10) { Cas = 100 }; var cloned = (MultiLookup<dynamic>)op.Clone(); Assert.AreEqual(op, cloned); }