public void SearchCommand_Clone_1() { Mock <IIrbisConnection> mock = GetConnectionMock(); IIrbisConnection connection = mock.Object; SearchCommand first = new SearchCommand(connection) { Database = "IBIS", FirstRecord = 1, NumberOfRecords = 10, MinMfn = 100, MaxMfn = 200, SearchExpression = "A=AUTHOR$", FormatSpecification = "@brief", SequentialSpecification = "p(v300)" }; SearchCommand second = first.Clone(); Assert.AreEqual(first.Database, second.Database); Assert.AreEqual(first.FirstRecord, second.FirstRecord); Assert.AreEqual(first.NumberOfRecords, second.NumberOfRecords); Assert.AreEqual(first.MinMfn, second.MinMfn); Assert.AreEqual(first.MaxMfn, second.MaxMfn); Assert.AreEqual(first.SearchExpression, second.SearchExpression); Assert.AreEqual(first.FormatSpecification, second.FormatSpecification); Assert.AreEqual(first.SequentialSpecification, second.SequentialSpecification); }