public void Dispose()
        {
            Yogi.DisableConsoleLogging();
            Yogi.DisableHookLogging();
            Yogi.DisableFileLogging();

            GC.Collect();
        }
示例#2
0
        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();
        }
示例#3
0
        public void DisableHookLoggingError()
        {
            MOCK_ConfigureHookLogging((int verbosity, ConfigureHookLoggingFnDelegate fn_, IntPtr userarg) =>
            {
                return((int)Yogi.ErrorCode.Unknown);
            });

            Assert.ThrowsAny <Yogi.FailureException>(() =>
            {
                Yogi.DisableHookLogging();
            });
        }