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()));
        }
        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()));
        }
Beispiel #3
0
 public void APIKeyIsValid()
 {
     FakeRaygunClient client = new FakeRaygunClient("MY_API_KEY");
       Assert.IsTrue(client.Validate());
 }
Beispiel #4
0
 public void SetUp()
 {
     _client = new FakeRaygunClient();
 }
Beispiel #5
0
 public void SetUp()
 {
     _client = new FakeRaygunClient();
 }
Beispiel #6
0
        public void APIKeyIsValid()
        {
            FakeRaygunClient client = new FakeRaygunClient("MY_API_KEY");

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