public void Dispose() { Yogi.DisableConsoleLogging(); Yogi.DisableHookLogging(); Yogi.DisableFileLogging(); GC.Collect(); }
public void DisableHookLogging() { MOCK_ConfigureHookLogging((int verbosity, ConfigureHookLoggingFnDelegate fn_, IntPtr userarg) => { Assert.Equal((int)Yogi.Verbosity.None, verbosity); return((int)Yogi.ErrorCode.Ok); }); Yogi.DisableHookLogging(); }
public void DisableHookLoggingError() { MOCK_ConfigureHookLogging((int verbosity, ConfigureHookLoggingFnDelegate fn_, IntPtr userarg) => { return((int)Yogi.ErrorCode.Unknown); }); Assert.ThrowsAny <Yogi.FailureException>(() => { Yogi.DisableHookLogging(); }); }