예제 #1
0
        public void InvalidKey()
        {
            string    expected  = null;
            string    value     = "nombre";
            Attribute attribute = new Attribute("", value);

            Assert.Equal(attribute.Key, expected);
        }
예제 #2
0
        public void InvalidValue()
        {
            string    expected  = null;
            string    key       = "key";
            Attribute attribute = new Attribute(key, "");

            Assert.Equal(attribute.Value, expected);
        }
예제 #3
0
        public void InvalidKeyAndValue()
        {
            string    ClaveExpected = null;
            string    ValorExpected = null;
            Attribute attribute     = new Attribute("", "");

            Assert.Equal(attribute.Value, ValorExpected);
            Assert.Equal(attribute.Key, ClaveExpected);
        }
예제 #4
0
        public void ValidValueAndkey()
        {
            string    ClaveExpected = "color";
            string    ValorExpected = "rojo";
            Attribute attribute     = new Attribute("color", "rojo");

            Assert.Equal(attribute.Value, ValorExpected);
            Assert.Equal(attribute.Key, ClaveExpected);
        }