<commit_before>﻿using HipchatApiV2;
using HipchatApiV2.Requests;
using Xunit;

namespace IntegrationTests
{
    [Trait("SendNotification", "")]
    public class SendRoomNotification
    {
        public SendRoomNotification()
        {
            HipchatApiConfig.AuthToken = TestsConfig.AuthToken;
        }
        [Fact(DisplayName = "Can send a room notification")]
        public void CanSendRoomNotification()
        {
            var client = new HipchatClient();

            var sendMessageResult = client.SendNotification(TestsConfig.ExistingRoomId, "Test message");

            Assert.True(sendMessageResult);
        }
         
    }
}<commit_msg>created test room in ctr, and delete the test room in dispose<commit_after>﻿using System;
using HipchatApiV2;
using HipchatApiV2.Requests;
using Xunit;

namespace IntegrationTests
{
    [Trait("SendNotification", "")]
    public class SendRoomNotification : IDisposable
    {
        private readonly int _existingRoomId;
        public SendRoomNotification()
        {
            HipchatApiConfig.AuthToken = TestsConfig.AuthToken;
            HipchatClient client = new HipchatClient();

            _existingRoomId = client.CreateRoom("Test Send Message Room").Id;
        }
        [Fact(DisplayName = "Can send a room notification")]
        public void CanSendRoomNotification()
        {
            var client = new HipchatClient();

            var sendMessageResult = client.SendNotification(_existingRoomId, "Test message");

            Assert.True(sendMessageResult);
        }

        public void Dispose()
        {
            HipchatClient client = new HipchatClient();
            client.DeleteRoom(_existingRoomId);
        }
    }
}
{'fraction_non_alphanumeric': 0.08211997670355271, 'fraction_numerical': 0.0023296447291788003, 'mean_word_length': 2.5204918032786887, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '518573', 'n_tokens_mistral': 453, 'n_tokens_neox': 435, 'n_words': 105}