Пример #1
0
    public void EsMultiploDe4_1984()
    {
        Bisiesto bi = new Bisiesto();

        //bool b;
        //b = bi.EsBisiesto(1986);
        Assert.That(bi.EsBisiesto(1984));
    }
Пример #2
0
    public void EsMultiploDe400_2000()
    {
        Bisiesto bi = new Bisiesto();

        //bool b;
        //b = bi.EsBisiesto(1986);
        Assert.That(bi.EsBisiesto(2000));
    }
Пример #3
0
    public void Es1948bisiesto()
    {
        Bisiesto bisiesto = new Bisiesto();

        int year = bisiesto.esbisisesto(1948);

        int yearoperation = year % 4;


        Assert.AreEqual(0, yearoperation);
    }
Пример #4
0
    public void Es2000bisiesto()
    {
        Bisiesto bisiesto = new Bisiesto();

        int year = bisiesto.esbisisesto(2000);

        int yearoperation = year % 400;


        Assert.AreEqual(0, yearoperation);
    }