コード例 #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("");
 }