예제 #1
0
 public void Isbn10WithXIsValid()
 {
     var target = new IsbnAttribute();
     object value = "055215329X";
     var actual = target.IsValid(value);
     Assert.AreEqual(true, actual);
 }
예제 #2
0
 public void Isbn13IsValid()
 {
     var target = new IsbnAttribute();
     object value = "ISBN 978-90-443-1614-8";
     var actual = target.IsValid(value);
     Assert.AreEqual(true, actual);
 }
예제 #3
0
 public void Isbn10WithInvalidCheckIsFalse()
 {
     var target = new IsbnAttribute();
     object value = "0552153251";
     var actual = target.IsValid(value);
     Assert.AreEqual(false, actual);
 }