public void GenericEnumerator_SameAsNonGeneric()
        {
            var m = new List <object>()
            {
                "a", "b", "c"
            };
            var p = new Core.Proxies.AttributeValueList(m);
            var i = 0;

            foreach (var e in (p as IEnumerable))
            {
                Assert.Equal(e, m[i++]);
            }
        }
        public void Enumerator_Enumerates()
        {
            var m = new List <object>()
            {
                "a", "b", "c"
            };
            var p = new Core.Proxies.AttributeValueList(m);
            var i = 0;

            foreach (var e in p)
            {
                Assert.Equal(e, m[i++]);
            }
            Assert.Equal(3, i);
        }
 public void LessThan_Null_Throws()
 {
     Core.Proxies.AttributeValueList p2 = null;
     Assert.Throws <ArgumentException>(() => p2 < "a");
     Assert.Throws <ArgumentException>(() => p2 < null);
 }
 public void LessThan_ReturnsTrueWhenLT(string[] s, string test, bool expected)
 {
     Core.Proxies.AttributeValueList p = s;
     Assert.Equal(expected, p < test);
 }
 public void NotEquals_ReturnsTrueWhenNotEqual(string[] s, string test, bool expected)
 {
     Core.Proxies.AttributeValueList p = s;
     Assert.Equal(expected, p != test);
 }
 public void CompareTo_ReturnsListOfResults(string[] s, int[] expected)
 {
     Core.Proxies.AttributeValueList p = s;
     Assert.Equal(expected, p.CompareTo("b"));
 }
 public void Contains_TrueWhen(string[] s, string frag, bool expected)
 {
     Core.Proxies.AttributeValueList p = s;
     Assert.Equal(expected, p.Contains(frag));
 }
 public void EndsWith_TrueWhen(string[] s, string frag, bool expected)
 {
     Core.Proxies.AttributeValueList p = s;
     Assert.Equal(expected, p.EndsWith(frag));
 }
 public void GreaterThanOrEqual_Null_Throws()
 {
     Core.Proxies.AttributeValueList p2 = null;
     Assert.Throws <ArgumentException>(() => p2 >= "a");
     Assert.Throws <ArgumentException>(() => p2 >= null);
 }
 public void GreaterThanOrEqual_ReturnsTrueWhenLTE(string[] s, string test, bool expected)
 {
     Core.Proxies.AttributeValueList p = s;
     Assert.Equal(expected, p >= test);
 }