public void Parse_ShouldParseTrEMBLIdentifier()
        {
            var expected = new TrEMBLIdentifier("Q90RT2", "Q90RT2_9HIV1");
            var actual   = IdentifierParser.Parse("tr|Q90RT2|Q90RT2_9HIV1") as TrEMBLIdentifier;

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

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

            Assert.AreEqual(Code, identifier.Code);
        }
 public void Constructor_ShouldRejectWhitespaceName()
 {
     _ = new TrEMBLIdentifier(Accession, " ");
 }
 public void Constructor_ShouldRejectEmptyName()
 {
     _ = new TrEMBLIdentifier(Accession, "");
 }
 public void Constructor_ShouldRejectNullName()
 {
     _ = new TrEMBLIdentifier(Accession, null);
 }
 public void Constructor_ShouldRejectWhitespaceAccessionNumber()
 {
     _ = new TrEMBLIdentifier(" ", Name);
 }
 public void Constructor_ShouldRejectNullAccessionNumber()
 {
     _ = new TrEMBLIdentifier(null, Name);
 }