예제 #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("");
 }