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.º 3
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();
        }
        public void UnsetValuesAreNotCopied()
        {
            var source = new TestStore();

            var target = new TestStore();

            target.IsSomething = true;
            source.CopyTo(target);

            target.IsSomething.ShouldBeTrue();
        }
        public void CanCopyAttributes()
        {
            var source = new TestStore();

            source.IsSomething = true;

            var target = new TestStore();

            source.CopyTo(target);

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

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

            var target = new TestStore();

            source.CopyTo(target);

            target.IsSomething.ShouldBeTrue();
        }
        public void CopyingAttributesReplacesOldValues()
        {
            var source = new TestStore();

            source.IsSomething = false;

            var target = new TestStore();

            target.IsSomething = true;
            source.CopyTo(target);

            target.IsSomething.ShouldBeFalse();
        }
        public void DefaultValuesAreNotCopied()
        {
            var source = new TestStore();

            source.SetDefault(x => x.IsSomething, true);

            var target = new TestStore();

            target.IsSomething = false;
            source.CopyTo(target);

            target.IsSomething.ShouldBeFalse();
        }
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();
        }