예제 #1
0
        public void EventCreationTest()
        {
            sut.EventGroupBuilder.Children.ShouldNotBeNull();
            sut.EventGroupBuilder.Children.ExistsByName("e1").ShouldBeTrue();
            var event1 = ObjectBaseExtensions.FindByName(sut.EventGroupBuilder.Children, "e1");

            event1.Id.ShouldBeEqualTo("e1" + SBMLConstants.SBML_EVENTBUILDER);
            event1.Name.ShouldBeEqualTo("e1");
        }
        public void SpeciesCreationTest()
        {
            var mbb = _moBiProject.MoleculeBlockCollection.FirstOrDefault();

            mbb.ShouldNotBeNull();
            mbb.Any(molecule => molecule.Name == "S1").ShouldBeTrue();
            mbb.Any(molecule => molecule.Name == "S2").ShouldBeTrue();

            var msvbb = _moBiProject.MoleculeStartValueBlockCollection.FirstOrDefault();

            msvbb.Any(msv => msv.Name == "S1").ShouldBeTrue();
            msvbb.Any(msv => msv.Name == "S2").ShouldBeTrue();
            var msv1 = ObjectBaseExtensions.FindByName(msvbb, "S1");
            var msv2 = ObjectBaseExtensions.FindByName(msvbb, "S2");

            msv1.ShouldNotBeNull();
            msv2.ShouldNotBeNull();
            msv1.IsPresent.ShouldBeTrue();
            msv2.IsPresent.ShouldBeTrue();
        }