/// <summary> /// Sets the amount of details the log saves /// </summary> /// <param name="awg">the AWG object</param> /// <param name="setValue"></param> public void SetTheDiagnosticLogToDetailedMode(IAWG awg, DiagnosticLogDetails setValue) { string correctSyntax = setValue == DiagnosticLogDetails.On ? DiagnosticLogDetailsOnSyntaxSend : DiagnosticLogDetailsOffSyntaxSend; awg.DiagLogDetails(correctSyntax); }
/// <summary> /// Looks for the expected state /// </summary> /// <param name="awg"></param> /// <param name="expectedState"></param> public void DiagLogDetailedModeShouldBe(IAWG awg, DiagnosticLogDetails expectedState) { string expectedSyntax = expectedState == DiagnosticLogDetails.On ? DiagnosticLogDetailsOnSyntaxReceived : DiagnosticLogDetailsOffSyntaxReceived; const string possibleErrorMessage = "Checking for the state of the detail mode for the Diagnostic Log"; Assert.AreEqual(expectedSyntax, awg.DiagLogDetail, possibleErrorMessage); }