public void BasicTest()
 {
     Assert.AreEqual(21, CenturyFromYear.centuryFromYear(2018));
     Assert.AreEqual(15, CenturyFromYear.centuryFromYear(1455));
     Assert.AreEqual(18, CenturyFromYear.centuryFromYear(1703));
     Assert.AreEqual(18, CenturyFromYear.centuryFromYear(1800));
 }
        public void RandomTest()
        {
            Random rnd = new Random();

            for (int i = 0; i < 100; i++)
            {
                int n = rnd.Next(100, 1000000);
                Assert.That(CenturyFromYear.centuryFromYear(n), Is.EqualTo(check(n)));
            }
        }
        public void CenturyFromYear(int year, int expected)
        {
            // Arrange
            CenturyFromYear CenturyFromYear = new CenturyFromYear();

            // Act
            int actual = CenturyFromYear.СenturyFromYearTests(year);

            // Assert
            Assert.Equal(expected, actual);
        }