Ejemplo n.º 1
0
        public void op_FromString_string()
        {
            var expected = new UserAgent("value");
            var actual   = UserAgent.FromString("value");

            Assert.Equal(expected, actual);
        }
Ejemplo n.º 2
0
        public void op_FromString_stringEmpty()
        {
            var expected = new UserAgent(string.Empty);
            var actual   = UserAgent.FromString(string.Empty);

            Assert.Equal(expected, actual);
        }
Ejemplo n.º 3
0
 public void op_FromString_stringNull()
 {
     Assert.Throws <ArgumentNullException>(() => UserAgent.FromString(null));
 }