Skip to content

Instantly share code, notes, and snippets.

@jfromaniello
Created November 23, 2009 19:21
Show Gist options
  • Save jfromaniello/241304 to your computer and use it in GitHub Desktop.
Save jfromaniello/241304 to your computer and use it in GitHub Desktop.
[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