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