From 18f2b0c69e59bbb659ff368137d6cba70806b0aa Mon Sep 17 00:00:00 2001 From: routersys Date: Wed, 30 Sep 2026 12:04:06 +0900 Subject: [PATCH] =?UTF-8?q?WPF=E3=82=A2=E3=83=97=E3=83=AA=E3=82=B1?= =?UTF-8?q?=E3=83=BC=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=AE=E5=A4=96=E3=81=A7?= =?UTF-8?q?=E3=83=86=E3=83=AC=E3=83=A1=E3=83=88=E3=83=AA=E3=83=BC=E3=82=92?= =?UTF-8?q?=E9=80=81=E3=82=89=E3=81=AA=E3=81=84=E8=A9=A6=E9=A8=93=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WaveOptics.Tests/HostIntegrationTests.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/WaveOptics.Tests/HostIntegrationTests.cs b/WaveOptics.Tests/HostIntegrationTests.cs index 5aee0db..96d9d8a 100644 --- a/WaveOptics.Tests/HostIntegrationTests.cs +++ b/WaveOptics.Tests/HostIntegrationTests.cs @@ -1,10 +1,23 @@ using System.Windows; +using Telemetry; using WaveOptics.Effects; namespace WaveOptics.Tests; public sealed class HostIntegrationTests { + [Fact] + public void OutsideAWpfApplicationNoTelemetryIsStartedOrSent() + { + Assert.Null(Application.Current); + + WaveOpticsTelemetry.EnsureStartedOnce(); + WaveOpticsTelemetry.Report(new InvalidOperationException()); + + Assert.Null(ProcessState.Read("DrainClaimed")); + Assert.Null(ProcessState.Read("SentCount")); + } + [Fact] public void OutsideAWpfApplicationTheEffectCanStillBeCreated() { @@ -13,5 +26,6 @@ public sealed class HostIntegrationTests var effect = new WaveOpticsEffect(); Assert.Equal(Texts.WaveOptics, effect.Label); + Assert.Null(ProcessState.Read("DrainClaimed")); } }