/// <summary> /// Gets/Sets the diagnostic logging level /// </summary> /// <param name="db">The db.</param> /// <param name="logLevel">The log level.</param> public static void diagLogging(this IAdminOperations db, ref DiagnosticLoggingLevel logLevel) { DBQuery query = new DBQuery("diagLogging", (int)logLevel); IDBObject response = db.ExecuteCommand(query); response.ThrowIfResponseNotOK("diagLogging failed"); logLevel = (DiagnosticLoggingLevel)response.GetAsInt("yada"); }
public void DiagnosticLoggingLevelTest() { IAdminOperations target = CreateIAdminOperations(); DiagnosticLoggingLevel expected = new DiagnosticLoggingLevel(); // TODO: Initialize to an appropriate value DiagnosticLoggingLevel actual; target.DiagnosticLoggingLevel = expected; actual = target.DiagnosticLoggingLevel; actual.Should().Be(expected); Assert.Inconclusive("Verify the correctness of this test method."); }