Mercurial > pub > bltoolkit
diff UnitTests/All/GetValueTest.cs @ 0:f990fcb411a9
Копия текущей версии из github
author | cin |
---|---|
date | Thu, 27 Mar 2014 21:46:09 +0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/UnitTests/All/GetValueTest.cs Thu Mar 27 21:46:09 2014 +0400 @@ -0,0 +1,44 @@ +using System; + +using BLToolkit.Aspects; + +using NUnit.Framework; + +namespace UnitTests.All +{ + //[TestFixture] + public class GetValueTest + { + [ExpectedException(typeof(ApplicationException))] + public void Test() + { + try + { + var info = new InterceptCallInfo(); + + info.ParameterValues = new object[2]; + info.ParameterValues[0] = "123"; + info.ParameterValues[1] = 123; + + throw new ApplicationException(); + } + catch (Exception ex) + { + Console.WriteLine(ex); + Console.WriteLine(ex); + throw; + } + } + + public void Test(out int i3, out decimal d4) + { + object o = (decimal)123; + + d4 = (decimal)o; + + o = (int)123; + + i3 = (int)o; + } + } +}