예제 #1
0
        [Test] public virtual void SparseRowColumnMatrix()
        {
            Random r = new Random();
            int    n = Math.Max(TesterUtilities.getInt(nmax, r), 4);

            IElementalAccessMatrix A = new SparseRowColumnMatrix(n, n, 3);
            IElementalAccessVector b = new DenseVector(n), x = new DenseVector(n);

            Helper1(A, b, x);
        }
예제 #2
0
        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");
        }
예제 #3
0
 private void doSimpleRenderer(IGeoFeatureLayer gfl)
 {
     TesterUtilities.ApplySimpleRenderer(gfl);
 }
예제 #4
0
 private void doUniqueValueRenderer(IGeoFeatureLayer gfl)
 {
     TesterUtilities.ApplyUniqueValueRenderer(gfl);
 }