public void Configure_DefaultConfiguration_SetsScopeObserver() { var options = new SentryUnityOptions(); SentryNativeIos.Configure(options); Assert.IsAssignableFrom <IosNativeScopeObserver>(options.ScopeObserver); }
public void Configure_DefaultConfiguration_EnablesScopeSync() { var options = new SentryUnityOptions(); SentryNativeIos.Configure(options); Assert.True(options.EnableScopeSync); }
public void Configure_DefaultConfiguration_SetsCrashedLastRun() { var options = new SentryUnityOptions(); SentryNativeIos.Configure(options); Assert.IsNotNull(options.CrashedLastRun); }
public void Configure_NativeIosSupportDisabled_DisabledScopeSync() { var options = new SentryUnityOptions { IosNativeSupportEnabled = false }; SentryNativeIos.Configure(options); Assert.False(options.EnableScopeSync); }
public void Configure_NativeIosSupportDisabled_ObserverIsNull() { var options = new SentryUnityOptions { IosNativeSupportEnabled = false }; SentryNativeIos.Configure(options); Assert.Null(options.ScopeObserver); }
public static void Init() { var options = ScriptableSentryUnityOptions.LoadSentryUnityOptions(); if (options.ShouldInitializeSdk()) { var sentryUnityInfo = new SentryUnityInfo(); #if SENTRY_NATIVE_IOS SentryNativeIos.Configure(options); #elif SENTRY_NATIVE_ANDROID SentryNativeAndroid.Configure(options, sentryUnityInfo); #elif SENTRY_NATIVE_WINDOWS SentryNative.Configure(options); #endif SentryUnity.Init(options); } }