public void CreateSentryStackFrame_AppNamespaceExcluded_NotInAppFrame() { SentryOptions.AddInAppExclude(GetType().Namespace); var frame = new StackFrame(); var actual = Sut.CreateSentryStackFrame(frame); Assert.False(actual.InApp); }
public void ConfigureAppFrame_InAppExcludeMatches_TrueSet() { // Arrange var module = "ExcludedModule"; var sut = new SentryStackFrame(); sut.Module = module; var options = new SentryOptions(); options.AddInAppExclude(module); // Act sut.ConfigureAppFrame(options); // Assert Assert.False(sut.InApp); }
public void ConfigureAppFrame_InAppAlreadySet_InAppIgnored() { // Arrange var module = "ExcludedModule"; var sut = new SentryStackFrame(); sut.Module = module; var options = new SentryOptions(); options.AddInAppExclude(module); sut.InApp = true; // Act sut.ConfigureAppFrame(options); // Assert Assert.True(sut.InApp, "InApp started as true but ConfigureAppFrame changed it to false."); }