public void DeserializeWithEmptyValue() { var xcn = HL7Object.Parse <XCN>("a^^Bernt"); Assert.Equal("a", xcn.Identifier); Assert.Null(xcn.LastName); Assert.Equal("Bernt", xcn.FirstName); }
public void DeserializeWithValuesMissingAtEnd() { var xcn = HL7Object.Parse <XCN>("a^Brenna"); Assert.Equal("a", xcn.Identifier); Assert.Equal("Brenna", xcn.LastName); Assert.Null(xcn.FirstName); }
public void Deserialize() { var xcn = HL7Object.Parse <XCN>("a^Brenna^Bernt"); Assert.NotNull(xcn); Assert.IsAssignableFrom <XCN>(xcn); Assert.Equal("a", xcn.Identifier); Assert.Equal("Brenna", xcn.LastName); Assert.Equal("Bernt", xcn.FirstName); }