Пример #1
0
        public void Dispose()
        {
            Yogi.DisableConsoleLogging();
            Yogi.DisableHookLogging();
            Yogi.DisableFileLogging();

            GC.Collect();
        }
Пример #2
0
        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();
        }
Пример #3
0
        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();
            });
        }