public void RendererIsISimpleRenderer() { IGeoFeatureLayer gfl = layer as IGeoFeatureLayer; IFeatureRenderer fr = gfl.Renderer; Type expected = typeof(IFeatureRenderer); System.Console.WriteLine(expected.ToString() + ", " + fr.GetType().ToString()); Assert.IsInstanceOfType(expected, fr, "test ok"); }
public void RendererIsIUniqueValueRenderer() { //from simple (default) to unique value TesterUtilities.ApplyUniqueValueRenderer(layer as IGeoFeatureLayer); IGeoFeatureLayer gfl = layer as IGeoFeatureLayer; IFeatureRenderer fr = gfl.Renderer; Type expected = typeof(IUniqueValueRenderer); System.Console.WriteLine(expected.ToString() + ", " + fr.GetType().ToString()); Assert.IsInstanceOfType(expected, fr, "test ok"); }