示例#1
0
        public void SelectedInputProjectionTypeTest()
        {
            InputImageDetailsViewModel_Accessor target = new InputImageDetailsViewModel_Accessor();
            InputProjections expected = InputProjections.EquiRectangular;
            InputProjections actual;

            target.selectedInputProjectionType = expected;
            actual = target.SelectedInputProjectionType;
            Assert.AreEqual(expected, actual);
        }
示例#2
0
 public void SetSelectedOutputProjectionTypesTest()
 {
     using (TileGeneratorViewModel_Accessor target = new TileGeneratorViewModel_Accessor())
     {
         InputProjections inputProjection = InputProjections.EquiRectangular;
         bool             expected        = true;
         target.SetSelectedOutputProjectionTypes(inputProjection);
         Assert.AreEqual(expected, target.IsOutputProjectionEnabled);
         Assert.AreNotEqual(inputProjection, target.SelectedOutputProjectionType);
     }
 }
示例#3
0
        public void PopulateInputProjectionTypesTest()
        {
            InputImageDetailsViewModel_Accessor target = new InputImageDetailsViewModel_Accessor();

            target.PopulateInputProjectionTypes();
            InputProjections[] expected = new InputProjections[] { InputProjections.EquiRectangular, InputProjections.Mercator };

            foreach (InputProjections projectionType in expected)
            {
                Assert.IsTrue(target.inputProjectionTypes.Contains(projectionType));
            }
        }
        public void PopulateInputProjectionTypesTest()
        {
            InputImageDetailsViewModel_Accessor target = new InputImageDetailsViewModel_Accessor();
            target.PopulateInputProjectionTypes();
            InputProjections[] expected = new InputProjections[] { InputProjections.EquiRectangular, InputProjections.Mercator };

            foreach (InputProjections projectionType in expected)
            {
                Assert.IsTrue(target.inputProjectionTypes.Contains(projectionType));
            }
        }