Example #1
0
 public void should_add_multiple_and_get_all_metadata()
 {
     var metadata1 = new SomeMetadata();
     var metadata2 = new SomeMetadata();
     var results = new Metadata().Add(metadata1).Add(metadata2).GetAll<SomeMetadata>();
     results.ShouldTotal(2);
     results.ShouldContain(metadata1);
     results.ShouldContain(metadata2);
 }
Example #2
0
        public void should_add_multiple_and_get_all_metadata()
        {
            var metadata1 = new SomeMetadata();
            var metadata2 = new SomeMetadata();
            var results   = new Metadata().Add(metadata1).Add(metadata2).GetAll <SomeMetadata>();

            results.ShouldTotal(2);
            results.ShouldContain(metadata1);
            results.ShouldContain(metadata2);
        }
Example #3
0
 public void should_add_and_get_metadata()
 {
     var metadata = new SomeMetadata();
     new Metadata().Add(metadata).Get<SomeMetadata>().ShouldBeSameAs(metadata);
 }
Example #4
0
 public void should_add_and_indicate_that_metadata_exists()
 {
     var metadata = new SomeMetadata();
     new Metadata().Add(metadata).Contains<SomeMetadata>().ShouldBeTrue();
 }
Example #5
0
        public void should_add_and_get_metadata()
        {
            var metadata = new SomeMetadata();

            new Metadata().Add(metadata).Get <SomeMetadata>().ShouldBeSameAs(metadata);
        }
Example #6
0
        public void should_add_and_indicate_that_metadata_exists()
        {
            var metadata = new SomeMetadata();

            new Metadata().Add(metadata).Contains <SomeMetadata>().ShouldBeTrue();
        }