コード例 #1
0
ファイル: DateFCTest.cs プロジェクト: FrankMi101/PLF4
        public string YearTOGOTest(string strType, string cSchoolYear)
        {
            string result = DateFC.YearTOGO(strType, cSchoolYear);

            return(result);
            // TODO: add assertions to method DateFCTest.YearTOGOTest(String, String)
        }
コード例 #2
0
        public void YearTOGOTest_Previous()
        {
            //Arrange
            string cschoolyear = "20182019";

            string expect = "20172018";

            // Act
            var result = DateFC.YearTOGO("Pre", 10, cschoolyear);

            //Assert
            Assert.AreEqual(expect, result, $"school year Go Previous, {result}");
        }
コード例 #3
0
        public void YearTOGOTest_Next()
        {
            //Arrange
            string cschoolyear = "20182019";

            string expect = "20192020";

            // Act
            var result = DateFC.YearTOGO("Next", 10, cschoolyear);

            //Assert
            Assert.AreEqual(expect, result, $"school year Go Next, {result}");
        }