Created
November 23, 2009 19:21
-
-
Save jfromaniello/241304 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestFixture] | |
public class CajaValidationFixture : ValidationBase | |
{ | |
[Test] | |
public void validaciones_de_descripcion() | |
{ | |
var caja = new Caja(); | |
caja.GetMessagesFor(p => p.Nombre) | |
.Should().Contain("No puede estar en blanco."); | |
} | |
[Test] | |
public void validaciones_de_cuentacontable() | |
{ | |
var caja = new Caja { CuentaContable = new CuentaContable {Imputable = false} }; | |
caja.GetMessagesFor(p => p.CuentaContable) | |
.Should().Contain("Debe ser imputable."); | |
/// | |
//caja.GetMessagesFor(p => p.CuentaContable) | |
// .Count.Should().Be.GreaterThan(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment