public void test_no_subscribers() { readedText = ""; var publisher = new Publisher(); publisher.Publish("test"); readedText.Should().Be(""); }
public void test_read_text() { readedText = ""; var publisher = new Publisher(); publisher.WriteEvent += HandlePublisherEvent; publisher.Publish("lhyiuyo,ddddd,dddddd"); readedText.Should().Be("lhyiuyo,ddddd,dddddd"); }
public void test_read_text1() { readedText = ""; var publisher = new Publisher(); publisher.WriteEvent += HandlePublisherEvent; publisher.Publish(null); readedText.Should().Be(""); }