Exemplo n.º 1
0
        public void Attributes_ShouldReturnByAttributesObject()
        {
            var by = By.Attributes(new Dictionary <string, object> {
                { "a", "1" }
            });

            Assert.IsInstanceOf <ByAttributes>(by);
        }
Exemplo n.º 2
0
 public void Attributes_AttributesIsEmpty_ArgumentExceptionIsThrown()
 {
     Assert.Throws <ArgumentException>(() => By.Attributes(new Dictionary <string, object>()));
 }
Exemplo n.º 3
0
 public void Attributes_AttributesIsNull_ArgumentNullExceptionIsThrown()
 {
     Assert.Throws <ArgumentNullException>(() => By.Attributes(null));
 }