Esempio n. 1
0
 public void GivenAValidQqFileExtension_ThenTheModelIsValid()
 {
     var model = new NewMediaViewModel {QqFile = "name.jpg"};
     Assert.That(model.Validate(null).Count(), Is.EqualTo(0));
 }
Esempio n. 2
0
 public void GivenAValidFileExtension_ThenTheModelIsValid()
 {
     var model = new NewMediaViewModel {File = new TestHttpPostedFileBase("foo.jpg")};
     Assert.That(model.Validate(null).Count(), Is.EqualTo(0));
 }