Example #1
0
        public void should_return_a_macro_command_containing_the_remove_variability_and_molecule_action()
        {
            _result.Count.ShouldBeEqualTo(2);
            _result.All().ElementAt(0).ShouldBeAnInstanceOf <PKSimMacroCommand>();
            var removeAdvancedParmaeterCommand = _result.All().ElementAt(0).DowncastTo <PKSimMacroCommand>();

            removeAdvancedParmaeterCommand.All().First().ShouldBeAnInstanceOf <RemoveAdvancedParameterFromContainerCommand>();
            _result.All().ElementAt(1).ShouldBeAnInstanceOf <RemoveMoleculeFromPopulationCommand>();
        }
Example #2
0
 public void should_hide_the_set_default_flag_command()
 {
     _setCommand.All().First(x => x.IsAnImplementationOf <SetParameterDefaultStateCommand>()).Visible.ShouldBeFalse();
 }
 public void should_not_update_the_building_block_version()
 {
     _command.All().OfType <BuildingBlockChangeCommand>().Each(x => x.ShouldChangeVersion.ShouldBeFalse());
 }
Example #4
0
 public void should_return_a_macro_command_containing_the_add_variability_and_molecule_action()
 {
     _result.Count.ShouldBeEqualTo(2);
     _result.All().ElementAt(0).ShouldBeAnInstanceOf <AddMoleculeToPopulationCommand>();
     _result.All().ElementAt(1).ShouldBeEqualTo(_addVariabilityCommand);
 }
Example #5
0
 public void should_return_a_macro_command_containing_a_sub_command_for_each_advanced_parameter_added_to_the_population()
 {
     _result.ShouldNotBeNull();
     _result.All().First().ShouldBeAnInstanceOf <AddAdvancedParameterToContainerCommand>();
 }