public void GivenAValidFIleExtension_ThenIsAllowedIsTrue() { var model = new NewMediaViewModel(); Assert.IsTrue(model.IsAllowed("jpg")); }
public void GivenAInvalidFIleExtension_ThenIsAllowedIsFalse() { var model = new NewMediaViewModel(); Assert.IsFalse(model.IsAllowed("txt")); }