Ejemplo n.º 1
0
        public void CanGetAndSetAttribute()
        {
            var store = new TestStore();

            store.Set("IsSomething", Layer.Defaults, true);
            store.IsSomething.ShouldBeTrue();
        }
        public void CanCheckIfAttributeIsSpecified()
        {

            var store = new TestStore();            
            store.IsSpecified("IsSomething").ShouldBeFalse();
            store.Set("IsSomething", Layer.Defaults, true);
            store.IsSpecified("IsSomething").ShouldBeTrue();
        }
Ejemplo n.º 3
0
        public void CanSetDefaultValue()
        {
            var source = new TestStore();

            source.Set("IsSomething", Layer.Defaults, true);

            source.IsSomething.ShouldBeTrue();
        }
Ejemplo n.º 4
0
        public void CanCheckIfAttributeIsSpecified()
        {
            var store = new TestStore();

            store.IsSpecified("IsSomething").ShouldBeFalse();
            store.Set("IsSomething", Layer.Defaults, true);
            store.IsSpecified("IsSomething").ShouldBeTrue();
        }
        public void UnsetValuesAreNotCopied()
        {
            var source = new TestStore();
            var target = new TestStore();
            target.Set("IsSomething", Layer.Defaults, true);
            source.CopyTo(target);

            target.IsSomething.ShouldBeTrue();
        }
        public void CanCopyAttributes()
        {
            var source = new TestStore();
            source.Set("IsSomething", Layer.Defaults, true);

            var target = new TestStore();
            source.CopyTo(target);

            target.IsSomething.ShouldBeTrue();
        }
Ejemplo n.º 7
0
        public void UnsetValuesAreNotCopied()
        {
            var source = new TestStore();
            var target = new TestStore();

            target.Set("IsSomething", Layer.Defaults, true);
            source.CopyTo(target);

            target.IsSomething.ShouldBeTrue();
        }
        public void CopyingAttributesReplacesOldValues()
        {
            var source = new TestStore();
            source.Set("IsSomething", Layer.Defaults, false);

            var target = new TestStore();
            target.Set("IsSomething", Layer.Defaults, true);
            source.CopyTo(target);

            target.IsSomething.ShouldBeFalse();
        }
Ejemplo n.º 9
0
        public void CanCopyAttributes()
        {
            var source = new TestStore();

            source.Set("IsSomething", Layer.Defaults, true);

            var target = new TestStore();

            source.CopyTo(target);

            target.IsSomething.ShouldBeTrue();
        }
Ejemplo n.º 10
0
        public void CopyingAttributesReplacesOldValues()
        {
            var source = new TestStore();

            source.Set("IsSomething", Layer.Defaults, false);

            var target = new TestStore();

            target.Set("IsSomething", Layer.Defaults, true);
            source.CopyTo(target);

            target.IsSomething.ShouldBeFalse();
        }
 public void CanSetDefaultValue()
 {
     var source = new TestStore();
     source.Set("IsSomething", Layer.Defaults, true);
     
     source.IsSomething.ShouldBeTrue();
 }
 public void CanGetAndSetAttribute()
 {
     var store = new TestStore();
     store.Set("IsSomething", Layer.Defaults, true);
     store.IsSomething.ShouldBeTrue();            
 }