コード例 #1
0
        public virtual void TestSetResSeq_String()
        {
            IPDBMonomer monomer = (IPDBMonomer)NewChemObject();

            monomer.ResSeq = null;
            Assert.IsNull(monomer.ResSeq);
        }
コード例 #2
0
        public void TestNewPDBMonomer()
        {
            IChemObjectBuilder builder = RootObject.Builder;
            IPDBMonomer        monomer = builder.NewPDBMonomer();

            Assert.IsNotNull(monomer);
        }
コード例 #3
0
        public virtual void TestSetChainID_String()
        {
            IPDBMonomer monomer = (IPDBMonomer)NewChemObject();

            monomer.ChainID = null;
            Assert.IsNull(monomer.ChainID);
        }
コード例 #4
0
        public virtual void TestSetICode_String()
        {
            IPDBMonomer monomer = (IPDBMonomer)NewChemObject();

            monomer.ICode = null;
            Assert.IsNull(monomer.ICode);
        }
コード例 #5
0
        public virtual void TestGetResSeq()
        {
            IPDBMonomer monomer = (IPDBMonomer)NewChemObject();

            Assert.IsNull(monomer.ResSeq);
            monomer.ResSeq = "reqSeq";
            Assert.IsNotNull(monomer.ResSeq);
            Assert.AreEqual("reqSeq", monomer.ResSeq);
        }
コード例 #6
0
        public virtual void TestGetChainID()
        {
            IPDBMonomer monomer = (IPDBMonomer)NewChemObject();

            Assert.IsNull(monomer.ChainID);
            monomer.ChainID = "chainA";
            Assert.IsNotNull(monomer.ChainID);
            Assert.AreEqual("chainA", monomer.ChainID);
        }
コード例 #7
0
        public virtual void TestGetICode()
        {
            IPDBMonomer monomer = (IPDBMonomer)NewChemObject();

            Assert.IsNull(monomer.ICode);
            monomer.ICode = "iCode";
            Assert.IsNotNull(monomer.ICode);
            Assert.AreEqual("iCode", monomer.ICode);
        }
コード例 #8
0
        public override void TestToString()
        {
            IPDBMonomer monomer     = (IPDBMonomer)NewChemObject();
            string      description = monomer.ToString();

            for (int i = 0; i < description.Length; i++)
            {
                Assert.IsTrue('\n' != description[i]);
                Assert.IsTrue('\r' != description[i]);
            }
        }
コード例 #9
0
        public virtual void TestAddAtom_IPDBAtom_IMonomer()
        {
            IPDBPolymer pdbPolymer = (IPDBPolymer)NewChemObject();
            IPDBMonomer oMono1     = pdbPolymer.Builder.NewPDBMonomer();

            oMono1.MonomerName = "TRP279";
            IStrand oStrand1 = pdbPolymer.Builder.NewStrand();

            oStrand1.StrandName = "A";
            IPDBAtom oPDBAtom1 = pdbPolymer.Builder.NewPDBAtom("C");

            pdbPolymer.AddAtom(oPDBAtom1, oMono1, oStrand1);

            Assert.AreEqual(1, pdbPolymer.GetMonomer("TRP279", "A").Atoms.Count);
        }