public void Parse_ShouldParseGenBankIdentifier()
        {
            var expected = new GenBankIdentifier("M73307", "AGMA13GT");
            var actual   = IdentifierParser.Parse("gb|M73307|AGMA13GT") as GenBankIdentifier;

            Assert.IsNotNull(actual);
            Assert.AreEqual(expected.Code, actual.Code);
            Assert.AreEqual(expected.Accession, actual.Accession);
            Assert.AreEqual(expected.Locus, actual.Locus);
        }
        public void ToString_ShouldFormatCorrectly()
        {
            Identifier identifier = new GenBankIdentifier(Accession, Locus);

            Assert.AreEqual($"{Code}|{Accession}|{Locus}", identifier.ToString());
        }
        public void Code_ShouldReturnCorrectValue()
        {
            Identifier identifier = new GenBankIdentifier(Accession, Locus);

            Assert.AreEqual(Code, identifier.Code);
        }
 public void Constructor_ShouldRejectWhitespaceLocusNumber()
 {
     _ = new GenBankIdentifier(Accession, " ");
 }
 public void Constructor_ShouldRejectNullLocusNumber()
 {
     _ = new GenBankIdentifier(Accession, null);
 }
 public void Constructor_ShouldRejectWhitespaceAccessionNumber()
 {
     _ = new GenBankIdentifier(" ", Locus);
 }
 public void Constructor_ShouldRejectNullAccessionNumber()
 {
     _ = new GenBankIdentifier(null, Locus);
 }