示例#1
0
 public void GetByKey_ShouldReturnANotification_KeyExists()
 {
     _sut = new Notifier();
     _sut.AddNotification(new("key", "value"));
     Assert.NotNull(_sut.GetByKey("key").First());
 }
示例#2
0
 public void GetByKey_MustThrowArgumentException_KeyIsNullOrEmpty()
 {
     _sut = new Notifier();
     Assert.Throws <ArgumentException>(() => _sut.GetByKey(null));
 }