/* * Created by SharpDevelop. * User: silvage * Date: 5/5/2010 * Time: 7:32 PM * * */ using System; using Osce.Classes.Base; using Osce.Classes.Enumerations; using NUnit.Framework; namespace UnitTests.Classes.Base { /// /// Description of UT_MapFrame. /// [TestFixture] public class UT_MapFrame { private MapFrame mf; [SetUp] [Category("Get/Set")] public void Init() { mf = new MapFrame(); } [Test] [Category("Get/Set")] public void Test_Get_Set_MapFrame() { Size s = new Size(10,"inches",10,"inches"); mf.MapFrameName = "Test"; mf.MapFramePaperSize = s; mf.MapFrameScale = 1000; mf.MapFrameScaleType = ScaleType.Absolute; mf.MapFrameTransparency = 100; mf.ZOrder = 0; Assert.AreEqual("Test",mf.MapFrameName); Assert.AreEqual(s,mf.MapFramePaperSize); Assert.AreEqual(1000,mf.MapFrameScale); Assert.AreEqual(ScaleType.Absolute,mf.MapFrameScaleType); Assert.AreEqual(100,mf.MapFrameTransparency); Assert.AreEqual(0,mf.ZOrder); Assert.AreEqual(0,mf.MapFrameLayers.Count); /* these cannot be tested independently mf.MapFrameCoordinateSystem mf.TopLeftPaperCorner = new GisSharpBlog.NetTopologySuite.Geometries.Coordinate(); mf.MaxXY = new GisSharpBlog.NetTopologySuite.Geometries.Coordinate(); mf.MinXY = new GisSharpBlog.NetTopologySuite.Geometries.Coordinate(); these cannot be tested independently */ } } }