public void CustomActoGetImplementation() { tlog.Debug(tag, $"CustomActoGetImplementation START"); using (View view = new View()) { var testingTarget = new CustomActor(view.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <CustomActor>(testingTarget, "Should be an Instance of CustomActor!"); try { testingTarget.GetImplementation(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"CustomActoGetImplementation END (OK)"); }
public void CustomActorConstructorWithCustomActorImpl() { tlog.Debug(tag, $"CustomActorConstructorWithCustomActorImpl START"); using (View view = new View()) { using (CustomActor actor = new CustomActor(view.SwigCPtr.Handle, false)) { var testingTarget = new CustomActor(actor.GetImplementation()); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <CustomActor>(testingTarget, "Should be an Instance of CustomActor!"); testingTarget.Dispose(); } } tlog.Debug(tag, $"CustomActorConstructorWithCustomActorImpl END (OK)"); }