summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.UnitTests/ContraintTypeConverterTests.cs
blob: e34f9a4a3a8b28c37d9292c3c2b663e90c8e6695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using NUnit.Framework;

namespace Xamarin.Forms.Core.UnitTests
{
	[TestFixture]
	public class ContraintTypeConverterTests : BaseTestFixture
	{
		[Test]
		public void ConvertFrom ()
		{
			var converter = new ConstraintTypeConverter ();
			Assert.AreEqual (Constraint.Constant (1.0).Compute (null), ((Constraint)converter.ConvertFromInvariantString ("1.0")).Compute (null));
			Assert.AreEqual (Constraint.Constant (1.3).Compute (null), ((Constraint)converter.ConvertFromInvariantString ("1.3")).Compute (null));
		}
	}
}