public void IsSubscribed_PreparedChatUserModelWithEmptySubscriptions_ReturnsFalse() { ChatUserModel model = new ChatUserModel(); string streamName = "StreamName"; Assert.That(model.IsSubscribed(streamName), Is.EqualTo(false)); }
public void IsSubscribed_EmptyStreamName_Throws() { ChatUserModel model = new ChatUserModel(); string streamName = ""; Assert.That(() => model.IsSubscribed(streamName), Throws.ArgumentException); }
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)); }