コード例 #1
0
ファイル: StudentTest.cs プロジェクト: chvsuresh21/XUnitRepo
 public void GetStudentLocationByStudentIdExceptionTest()
 {
     Assert.Throws <ArgumentException>(() => StudentUtil.GetStudentLocationByStudentId(""));
 }
コード例 #2
0
ファイル: StudentTest.cs プロジェクト: chvsuresh21/XUnitRepo
        public void GetStudentLocationByStudentIdTest(string studentId, string expectedResult)
        {
            var result = StudentUtil.GetStudentLocationByStudentId(studentId);

            Assert.Equal(expectedResult, result);
        }