public void GetIterationsFromYear_CalculatesCorrectValues()
{
Assert.AreEqual(1000, crypto.GetIterationsFromYear(-1));
Assert.AreEqual(1000, crypto.GetIterationsFromYear(1999));
Assert.AreEqual(1000, crypto.GetIterationsFromYear(2000));
Assert.AreEqual(1000, crypto.GetIterationsFromYear(2001));
Assert.AreEqual(2000, crypto.GetIterationsFromYear(2002));
Assert.AreEqual(2000, crypto.GetIterationsFromYear(2003));
Assert.AreEqual(4000, crypto.GetIterationsFromYear(2004));
Assert.AreEqual(8000, crypto.GetIterationsFromYear(2006));
Assert.AreEqual(16000, crypto.GetIterationsFromYear(2008));
Assert.AreEqual(32000, crypto.GetIterationsFromYear(2010));
Assert.AreEqual(64000, crypto.GetIterationsFromYear(2012));
Assert.AreEqual(2097152000, crypto.GetIterationsFromYear(2042));
Assert.AreEqual(Int32.MaxValue, crypto.GetIterationsFromYear(2044));
Assert.AreEqual(Int32.MaxValue, crypto.GetIterationsFromYear(2045));
Assert.AreEqual(Int32.MaxValue, crypto.GetIterationsFromYear(2046));
}
}