Example #1
0
 public void IsActive_returns_true_when_AmbientObserver_instantiated()
 {
     using (var observer = AmbientObserver.Activate())
     {
         Assert.True(AmbientObserver.IsActive(out _));
     }
 }
Example #2
0
 public void IsActive_returns_false_when_no_AmbientObserver_instantiated()
 {
     Assert.False(AmbientObserver.IsActive(out _));
 }