Ejemplo n.º 1
0
        public void Dispose()
        {
            Yogi.DisableConsoleLogging();
            Yogi.DisableHookLogging();
            Yogi.DisableFileLogging();

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

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