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