public void test_L3_Compartment_spatialDimensions()
 {
     assertEquals(false, C.isSetSpatialDimensions());
     assertEquals(true, isnan(C.getSpatialDimensionsAsDouble()));
     C.setSpatialDimensions(1.5);
     assertEquals(true, C.isSetSpatialDimensions());
     assertTrue(C.getSpatialDimensionsAsDouble() == 1.5);
     C.unsetSpatialDimensions();
     assertEquals(false, C.isSetSpatialDimensions());
     assertEquals(true, isnan(C.getSpatialDimensionsAsDouble()));
 }
        public void test_WriteL3SBML_Compartment_spatialDimensions()
        {
            string      expected  = "<compartment id=\"A\" spatialDimensions=\"2.1\" " + "constant=\"false\"/>";
            string      expected1 = "<compartment id=\"A\" constant=\"false\"/>";
            Compartment c         = D.createModel().createCompartment();

            c.setId("A");
            c.setConstant(false);
            c.setSpatialDimensions(2.1);
            assertEquals(true, equals(expected, c.toSBML()));
            c.unsetSpatialDimensions();
            assertEquals(true, equals(expected1, c.toSBML()));
        }