public void EsMultiploDe4_1984() { Bisiesto bi = new Bisiesto(); //bool b; //b = bi.EsBisiesto(1986); Assert.That(bi.EsBisiesto(1984)); }
public void EsMultiploDe400_2000() { Bisiesto bi = new Bisiesto(); //bool b; //b = bi.EsBisiesto(1986); Assert.That(bi.EsBisiesto(2000)); }
public void Es1948bisiesto() { Bisiesto bisiesto = new Bisiesto(); int year = bisiesto.esbisisesto(1948); int yearoperation = year % 4; Assert.AreEqual(0, yearoperation); }
public void Es2000bisiesto() { Bisiesto bisiesto = new Bisiesto(); int year = bisiesto.esbisisesto(2000); int yearoperation = year % 400; Assert.AreEqual(0, yearoperation); }