[mapguide-commits] r6037 - in trunk/Tools/Maestro: MaestroAPITests OSGeo.MapGuide.MaestroAPI

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Aug 5 07:28:25 EDT 2011


Author: jng
Date: 2011-08-05 04:28:25 -0700 (Fri, 05 Aug 2011)
New Revision: 6037

Modified:
   trunk/Tools/Maestro/MaestroAPITests/ResourceTests.cs
   trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/OSGeo.MapGuide.MaestroAPI.csproj
Log:
Unit test cleanup


Modified: trunk/Tools/Maestro/MaestroAPITests/ResourceTests.cs
===================================================================
--- trunk/Tools/Maestro/MaestroAPITests/ResourceTests.cs	2011-08-04 16:00:10 UTC (rev 6036)
+++ trunk/Tools/Maestro/MaestroAPITests/ResourceTests.cs	2011-08-05 11:28:25 UTC (rev 6037)
@@ -606,6 +606,9 @@
             var conn = _mocks.NewMock<IServerConnection>();
             var conv = new ResourceObjectConverter();
             var ldf = ObjectFactory.CreateDefaultLayer(conn, LayerType.Vector, new Version(1, 0, 0));
+            ldf.SubLayer.ResourceId = "Library://Samples/Sheboygan/Data/Parcels.FeatureSource";
+            ((IVectorLayerDefinition)ldf.SubLayer).FeatureName = "SHP_Schema:Parcels";
+            ((IVectorLayerDefinition)ldf.SubLayer).Geometry = "Geometry";
 
             Assert.AreEqual("1.0.0", ldf.GetResourceTypeDescriptor().Version);
             Assert.AreEqual("LayerDefinition-1.0.0.xsd", ldf.GetResourceTypeDescriptor().XsdName);

Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/OSGeo.MapGuide.MaestroAPI.csproj
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/OSGeo.MapGuide.MaestroAPI.csproj	2011-08-04 16:00:10 UTC (rev 6036)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/OSGeo.MapGuide.MaestroAPI.csproj	2011-08-05 11:28:25 UTC (rev 6037)
@@ -483,9 +483,6 @@
       <SubType>Designer</SubType>
     </EmbeddedResource>
   </ItemGroup>
-  <ItemGroup>
-    <Folder Include="Geometry\" />
-  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.



More information about the mapguide-commits mailing list