public void Execute_should_return_expected_result() { var subject = new CurrentOpOperation(_adminDatabaseNamespace, _messageEncoderSettings); using (var binding = new ReadPreferenceBinding(CoreTestConfiguration.Cluster, ReadPreference.PrimaryPreferred)) { var result = subject.Execute(binding); result.Contains("inprog"); } }
public void Execute_should_return_expected_result() { RequireServer.Check().VersionGreaterThanOrEqualTo("3.1.2"); var subject = new CurrentOpOperation(_adminDatabaseNamespace, _messageEncoderSettings); using (var binding = new ReadPreferenceBinding(CoreTestConfiguration.Cluster, ReadPreference.PrimaryPreferred, NoCoreSession.NewHandle())) { var result = subject.Execute(binding); result.Contains("inprog"); } }
public void Execute_should_return_expected_result() { RequireServer.Where(minimumVersion: "3.1.2"); var subject = new CurrentOpOperation(_adminDatabaseNamespace, _messageEncoderSettings); using (var binding = new ReadPreferenceBinding(CoreTestConfiguration.Cluster, ReadPreference.PrimaryPreferred)) { var result = subject.Execute(binding); result.Contains("inprog"); } }