Ejemplo n.º 1
0
        public void Constructor_ValueAsUnderlyingObjectArgument_ShouldSetDisplayNamePropertyToUnderlyingObjectToString()
        {
            var expectations = Expectations.GetObjectsReferenceTypes();

            foreach (var e in expectations)
            {
                var element = new CompositionElement(e);

                Assert.AreEqual(e.ToString(), element.DisplayName);
            }
        }
Ejemplo n.º 2
0
        public void Constructor_ValueAsUnderlyingObjectArgument_ShouldSetUnderlyingObjectProperty()
        {
            var expectations = Expectations.GetObjectsReferenceTypes();

            foreach (var e in expectations)
            {
                var element = new CompositionElement(e);

                Assert.AreSame(e, element.UnderlyingObject);
            }            
        }
Ejemplo n.º 3
0
        public void Constructor_ValueAsUnderlyingObjectArgument_ShouldSetOriginToUnknown()
        {
            var expectations = Expectations.GetObjectsReferenceTypes();

            foreach (var e in expectations)
            {
                var element = new CompositionElement(e);

                Assert.IsNotNull(element.Origin);
                Assert.IsNull(element.Origin.Origin);
            }
        }
        public CompositionElementDebuggerProxy(CompositionElement element) 
        {
            Requires.NotNull(element, "element");

            this._element = element;
        }
Ejemplo n.º 5
0
        public CompositionElementDebuggerProxy(CompositionElement element)
        {
            Requires.NotNull(element, nameof(element));

            _element = element;
        }
        public CompositionElementDebuggerProxy(CompositionElement element)
        {
            Requires.NotNull(element, "element");

            this._element = element;
        }