Пример #1
0
        public void ExceptionInsideSendingMessageHAndlerDoesNotCrash()
        {
            FakeRaygunClient client = new FakeRaygunClient();
              client.SendingMessage += (sender, args) =>
              {
            throw new Exception("Oops...");
              };

              Assert.That(() => client.ExposeOnSendingMessage(new RaygunMessage()), Throws.Nothing);
              Assert.IsTrue(client.ExposeOnSendingMessage(new RaygunMessage()));
        }
Пример #2
0
        public void ExceptionInsideSendingMessageHAndlerDoesNotCrash()
        {
            FakeRaygunClient client = new FakeRaygunClient();

            client.SendingMessage += (sender, args) =>
            {
                throw new Exception("Oops...");
            };

            Assert.That(() => client.ExposeOnSendingMessage(new RaygunMessage()), Throws.Nothing);
            Assert.IsTrue(client.ExposeOnSendingMessage(new RaygunMessage()));
        }
Пример #3
0
 public void APIKeyIsValid()
 {
     FakeRaygunClient client = new FakeRaygunClient("MY_API_KEY");
       Assert.IsTrue(client.Validate());
 }
Пример #4
0
 public void SetUp()
 {
     _client = new FakeRaygunClient();
 }
Пример #5
0
 public void SetUp()
 {
     _client = new FakeRaygunClient();
 }
Пример #6
0
        public void APIKeyIsValid()
        {
            FakeRaygunClient client = new FakeRaygunClient("MY_API_KEY");

            Assert.IsTrue(client.ExposeValidateApiKey());
        }