public Tests()
        {
            NativeInterface k4ainterface = NativeInterface.Create(
                EnvironmentInfo.CalculateFileLocation(@"k4a\k4a.dll"),
                EnvironmentInfo.CalculateFileLocation(@"k4a\k4a.h"));

            k4a = StubbedModule.Create("k4a", k4ainterface);
        }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LoggingTests"/> class.
        /// </summary>
        public LoggingTests()
        {
            this.nativeK4a = StubbedModule.Get("k4a");
            if (this.nativeK4a == null)
            {
                NativeInterface k4ainterface = NativeInterface.Create(
                    EnvironmentInfo.CalculateFileLocation(@"k4a\k4a.dll"),
                    EnvironmentInfo.CalculateFileLocation(@"k4a\k4a.h"));

                this.nativeK4a = StubbedModule.Create("k4a", k4ainterface);
            }
        }
예제 #3
0
        public ImageFunctionTests()
        {
            NativeK4a = StubbedModule.Get("k4a");
            if (NativeK4a == null)
            {
                NativeInterface k4ainterface = NativeInterface.Create(
                    EnvironmentInfo.CalculateFileLocation(@"k4a\k4a.dll"),
                    EnvironmentInfo.CalculateFileLocation(@"k4a\k4a.h"));

                NativeK4a = StubbedModule.Create("k4a", k4ainterface);
            }
        }