public void Dispose() { Yogi.DisableConsoleLogging(); Yogi.DisableHookLogging(); Yogi.DisableFileLogging(); GC.Collect(); }
public void DisableFileLogging() { MOCK_ConfigureFileLogging((int verbosity, string filename, ref IntPtr genfn, ref int genfnsize, string timefmt, string fmt) => { Assert.Equal((int)Yogi.Verbosity.None, verbosity); return((int)Yogi.ErrorCode.Ok); }); Yogi.DisableFileLogging(); }
public void DisableFileLoggingError() { MOCK_ConfigureFileLogging((int verbosity, string filename, ref IntPtr genfn, ref int genfnsize, string timefmt, string fmt) => { return((int)Yogi.ErrorCode.Unknown); }); Assert.ThrowsAny <Yogi.FailureException>(() => { Yogi.DisableFileLogging(); }); }