Exemple #1
0
        public void Parse_WithValidString_ShouldSuccess(string value)
        {
            var id = PropertyId.Parse(value);

            Assert.Equal(value, id.ToString());
        }
Exemple #2
0
 public void Parse_WithInvalidString_ShouldThrow(string value)
 {
     Assert.Throws <FormatException>(() => PropertyId.Parse(value));
 }
 public void Parse_WithNull_ShouldThrow()
 {
     Assert.Throws <ArgumentNullException>("s", () => PropertyId.Parse(null));
 }