public void adds_the_value()
        {
            var v1 = TemplateValue.For("FirstName", "Joel");
            var v2 = TemplateValue.For("LastName", "Arnold");

            var collection = new TemplateValueCollection();
            collection.Add(v1);
            collection.Add(v2);

            collection.ShouldHaveTheSameElementsAs(v1, v2);
        }
Example #2
0
        public void only_adds_the_value_once()
        {
            var v1 = TemplateValue.For("FirstName", "Joel");

            var collection = new TemplateValueCollection();

            collection.Add(v1);
            collection.Add(v1);

            collection.ShouldHaveTheSameElementsAs(v1);
        }
Example #3
0
        public void adds_the_value()
        {
            var v1 = TemplateValue.For("FirstName", "Joel");
            var v2 = TemplateValue.For("LastName", "Arnold");

            var collection = new TemplateValueCollection();

            collection.Add(v1);
            collection.Add(v2);

            collection.ShouldHaveTheSameElementsAs(v1, v2);
        }
        public void only_adds_the_value_once()
        {
            var v1 = TemplateValue.For("FirstName", "Joel");

            var collection = new TemplateValueCollection();
            collection.Add(v1);
            collection.Add(v1);

            collection.ShouldHaveTheSameElementsAs(v1);
        }