public void OfflineReportsEnabled() { Assert.AreEqual(false, client.OfflineReportsEnabled); client.OfflineReportsEnabled = true; Assert.AreEqual(true, client.OfflineReportsEnabled); Predicate <IExceptionReportSender> predicate = (s) => { OfflineDirectoryExceptionReportSender sender = s as OfflineDirectoryExceptionReportSender; if (sender != null) { Assert.AreEqual(true, sender.IsEnabled); } return(true); }; CheckDefaultStructureAndPredicate(client, predicate); client.OfflineReportsEnabled = false; Assert.AreEqual(false, client.OfflineReportsEnabled); predicate = (s) => { OfflineDirectoryExceptionReportSender sender = s as OfflineDirectoryExceptionReportSender; if (sender != null) { Assert.AreEqual(false, sender.IsEnabled); } return(true); }; CheckDefaultStructureAndPredicate(client, predicate); }
public void OfflineReportsDirectory() { Assert.AreEqual("offline_reports", client.OfflineReportsDirectory); client.OfflineReportsDirectory = "offline_reports2"; Assert.AreEqual("offline_reports2", client.OfflineReportsDirectory); Predicate <IExceptionReportSender> predicate = (s) => { OfflineDirectoryExceptionReportSender sender = s as OfflineDirectoryExceptionReportSender; if (sender != null) { Assert.AreEqual("offline_reports2", sender.DirectoryName); } return(true); }; CheckDefaultStructureAndPredicate(client, predicate); }
public void OfflineReportsCount() { Assert.AreEqual(100, client.OfflineReportsCount); client.OfflineReportsCount = 20; Assert.AreEqual(20, client.OfflineReportsCount); Predicate <IExceptionReportSender> predicate = (s) => { OfflineDirectoryExceptionReportSender sender = s as OfflineDirectoryExceptionReportSender; if (sender != null) { Assert.AreEqual(20, sender.ReportCount); } return(true); }; CheckDefaultStructureAndPredicate(client, predicate); }
public void Defaults() { Assert.AreEqual(null, client.ApiKey); Assert.AreEqual(null, client.AppName); Assert.AreEqual(null, client.AppVersion); Assert.AreEqual(false, client.ConfirmSendReport); //Assert.AreEqual(null, client.MiniDumpServiceUrl); Assert.AreEqual("https://logify.devexpress.com", client.ServiceUrl); Assert.AreEqual(null, client.UserId); Assert.AreEqual(null, client.ProxyCredentials); Assert.AreEqual(true, client.CustomData != null); Assert.AreEqual(0, client.CustomData.Count); Assert.AreEqual(true, client.Attachments != null); Assert.AreEqual(0, client.Attachments.Count); Assert.AreEqual("offline_reports", client.OfflineReportsDirectory); Assert.AreEqual(100, client.OfflineReportsCount); Assert.AreEqual(false, client.OfflineReportsEnabled); Assert.AreEqual(false, client.CollectBreadcrumbs); Assert.AreEqual(true, client.Breadcrumbs != null); Assert.AreEqual(0, client.Breadcrumbs.Count); //Assert.AreEqual(1000, client.BreadcrumbsMaxCount); Assert.AreEqual(null, client.IgnoreFormFields); Assert.AreEqual(null, client.IgnoreHeaders); Assert.AreEqual(null, client.IgnoreCookies); Assert.AreEqual(null, client.IgnoreServerVariables); Predicate <IExceptionReportSender> predicate = (s) => { OfflineDirectoryExceptionReportSender sender = s as OfflineDirectoryExceptionReportSender; if (sender != null) { Assert.AreEqual("offline_reports", sender.DirectoryName); Assert.AreEqual(100, sender.ReportCount); Assert.AreEqual(false, sender.IsEnabled); } return(true); }; CheckDefaultStructureAndPredicate(client, predicate); }