コード例 #1
0
ファイル: ModelBaseTest.cs プロジェクト: shekky/Catel
        public void GetValue_NonExistingProperty()
        {
            var entry = new IniEntry();

            ExceptionTester.CallMethodAndExpectException <PropertyNotRegisteredException>(() => entry.GetValue <string>("Non-existing property"));
        }
コード例 #2
0
ファイル: ModelBaseTest.cs プロジェクト: shekky/Catel
        public void GetValue_Null()
        {
            var entry = new IniEntry();

            ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => entry.GetValue <string>(null));
        }