public void UndefinedMethodCall()
 {
     Assert.Throws(typeof(Microsoft.Azure.Kinect.Sensor.Test.StubGenerator.NativeFailureException), () =>
     {
         TestNativeMethods.k4a_device_get_installed_count();
     });
 }
        public void STUB_FAIL()
        {
            this.k4a.SetImplementation(@"

uint32_t k4a_device_get_installed_count()
{
    STUB_FAIL(""method failed"");
    return 12;
}");

            Assert.Throws(typeof(Microsoft.Azure.Kinect.Sensor.Test.StubGenerator.NativeFailureException), () =>
            {
                TestNativeMethods.k4a_device_get_installed_count();
            });
        }
        public void RedefineMethod()
        {
            k4a.SetImplementation(@"

uint32_t k4a_device_get_installed_count()
{
    return 12;
}");
            Assert.AreEqual(12, TestNativeMethods.k4a_device_get_installed_count());


            k4a.SetImplementation(@"

uint32_t k4a_device_get_installed_count()
{
    return 55;
}");
            Assert.AreEqual(55, TestNativeMethods.k4a_device_get_installed_count());
        }