Пример #1
0
        public void IsSubscribed_PreparedChatUserModelWithEmptySubscriptions_ReturnsFalse()
        {
            ChatUserModel model      = new ChatUserModel();
            string        streamName = "StreamName";

            Assert.That(model.IsSubscribed(streamName), Is.EqualTo(false));
        }
Пример #2
0
        public void IsSubscribed_EmptyStreamName_Throws()
        {
            ChatUserModel model      = new ChatUserModel();
            string        streamName = "";

            Assert.That(() => model.IsSubscribed(streamName), Throws.ArgumentException);
        }
Пример #3
0
        public void IsSubscribed_PreparedChatUserModelWithSubscriptions_ReturnsExpectedResult(string streamname, bool expectedResult)
        {
            Stream        stream = new Stream("TestName");
            ChatUserModel model  = new ChatUserModel(new List <Stream>()
            {
                stream
            });

            Assert.That(model.IsSubscribed(streamname), Is.EqualTo(expectedResult));
        }