Beispiel #1
0
 public void ShouldRetrieveSequenceTypeFromString()
 {
     Assert.AreEqual(SepaSequenceType.OOFF, SepaSequenceTypeUtils.SepaSequenceTypeFromString("OOFF"));
     Assert.AreEqual(SepaSequenceType.FIRST, SepaSequenceTypeUtils.SepaSequenceTypeFromString("FRST"));
     Assert.AreEqual(SepaSequenceType.RCUR, SepaSequenceTypeUtils.SepaSequenceTypeFromString("RCUR"));
     Assert.AreEqual(SepaSequenceType.FINAL, SepaSequenceTypeUtils.SepaSequenceTypeFromString("FNAL"));
 }
Beispiel #2
0
 public void ShouldRejectUnknownSequenceType()
 {
     SepaSequenceTypeUtils.SepaSequenceTypeFromString("unknown value");
 }
 public void ShouldRejectUnknownSequenceType()
 {
     Assert.That(() => { SepaSequenceTypeUtils.SepaSequenceTypeFromString("unknown value"); },
                 Throws.TypeOf <ArgumentException>().With.Property("Message").Contains("Unknown Sequence Type"));
 }