public virtual void TestSetResSeq_String() { IPDBMonomer monomer = (IPDBMonomer)NewChemObject(); monomer.ResSeq = null; Assert.IsNull(monomer.ResSeq); }
public void TestNewPDBMonomer() { IChemObjectBuilder builder = RootObject.Builder; IPDBMonomer monomer = builder.NewPDBMonomer(); Assert.IsNotNull(monomer); }
public virtual void TestSetChainID_String() { IPDBMonomer monomer = (IPDBMonomer)NewChemObject(); monomer.ChainID = null; Assert.IsNull(monomer.ChainID); }
public virtual void TestSetICode_String() { IPDBMonomer monomer = (IPDBMonomer)NewChemObject(); monomer.ICode = null; Assert.IsNull(monomer.ICode); }
public virtual void TestGetResSeq() { IPDBMonomer monomer = (IPDBMonomer)NewChemObject(); Assert.IsNull(monomer.ResSeq); monomer.ResSeq = "reqSeq"; Assert.IsNotNull(monomer.ResSeq); Assert.AreEqual("reqSeq", monomer.ResSeq); }
public virtual void TestGetChainID() { IPDBMonomer monomer = (IPDBMonomer)NewChemObject(); Assert.IsNull(monomer.ChainID); monomer.ChainID = "chainA"; Assert.IsNotNull(monomer.ChainID); Assert.AreEqual("chainA", monomer.ChainID); }
public virtual void TestGetICode() { IPDBMonomer monomer = (IPDBMonomer)NewChemObject(); Assert.IsNull(monomer.ICode); monomer.ICode = "iCode"; Assert.IsNotNull(monomer.ICode); Assert.AreEqual("iCode", monomer.ICode); }
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]); } }
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); }