示例#1
0
文件: Tests.cs 项目: itwymt/Kata5
 public void test_no_subscribers()
 {
     readedText = "";
     var publisher = new Publisher();
     publisher.Publish("test");
     readedText.Should().Be("");
 }
示例#2
0
文件: Tests.cs 项目: itwymt/Kata5
 public void test_read_text()
 {
     readedText = "";
     var publisher = new Publisher();
     publisher.WriteEvent += HandlePublisherEvent;
     publisher.Publish("lhyiuyo,ddddd,dddddd");
     readedText.Should().Be("lhyiuyo,ddddd,dddddd");
 }
示例#3
0
文件: Tests.cs 项目: itwymt/Kata5
 public void test_read_text1()
 {
     readedText = "";
     var publisher = new Publisher();
     publisher.WriteEvent += HandlePublisherEvent;
     publisher.Publish(null);
     readedText.Should().Be("");
 }