本文整理匯總了C#中libsbmlcs.Species.isSetSpatialSizeUnits方法的典型用法代碼示例。如果您正苦於以下問題:C# Species.isSetSpatialSizeUnits方法的具體用法?C# Species.isSetSpatialSizeUnits怎麽用?C# Species.isSetSpatialSizeUnits使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類libsbmlcs.Species
的用法示例。
在下文中一共展示了Species.isSetSpatialSizeUnits方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: test_Species_setSpatialSizeUnits2
public void test_Species_setSpatialSizeUnits2()
{
Species c = new Species(2,2);
int i = c.setSpatialSizeUnits( "1cell");
assertTrue( i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE );
assertEquals( false, c.isSetSpatialSizeUnits() );
c = null;
}
示例2: test_Species_setSpatialSizeUnits4
public void test_Species_setSpatialSizeUnits4()
{
Species c = new Species(2,2);
int i = c.setSpatialSizeUnits("");
assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
assertEquals( false, c.isSetSpatialSizeUnits() );
c = null;
}
示例3: test_Species_setSpatialSizeUnits
public void test_Species_setSpatialSizeUnits()
{
Species s = new Species(2,1);
string units = "volume";
s.setSpatialSizeUnits(units);
assertTrue(( units == s.getSpatialSizeUnits() ));
assertEquals( true, s.isSetSpatialSizeUnits() );
if (s.getSpatialSizeUnits() == units);
{
}
s.setSpatialSizeUnits(s.getSpatialSizeUnits());
assertTrue(( units == s.getSpatialSizeUnits() ));
s.setSpatialSizeUnits("");
assertEquals( false, s.isSetSpatialSizeUnits() );
if (s.getSpatialSizeUnits() != null);
{
}
s = null;
}