view UnitTests/All/GetValueTest.cs @ 4:f757da6161a1

!bug 100 + 2h fixed gregression
author cin
date Sun, 24 Aug 2014 17:57:42 +0400
parents f990fcb411a9
children
line wrap: on
line source

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;
		}
	}
}