예제 #1
0
        public void Source()
        {
            // Arrange
            var viewWrapper = new ViewWrapper(frameworkElement);

            // Assert
            Assert.That(viewWrapper.Source, Is.EqualTo(frameworkElement));
        }
예제 #2
0
        public void Source()
        {
            // ARRANGE
            var viewWrapper = new ViewWrapper(frameworkElement);

            // ASSERT
            Assert.That(viewWrapper.Source, Is.EqualTo(frameworkElement));
        }
예제 #3
0
        public void EqualsOverride()
        {
            // Arrange
            var viewWrapperA = new ViewWrapper(frameworkElement);
            var viewWrapperB = new ViewWrapper(frameworkElement);

            // Act
            bool equals = viewWrapperA.Equals(viewWrapperB);

            // Assert
            Assert.That(equals, Is.True);
        }
예제 #4
0
        public void EqualsOverride()
        {
            // ARRANGE
            var viewWrapperA = new ViewWrapper(frameworkElement);
            var viewWrapperB = new ViewWrapper(frameworkElement);

            // ACT
            bool equals = viewWrapperA.Equals(viewWrapperB);

            // ASSERT
            Assert.That(equals, Is.True);
        }
예제 #5
0
        public void GetHashCodeOverride()
        {
            // Arrange
            var viewWrapperA = new ViewWrapper(frameworkElement);
            var viewWrapperB = new ViewWrapper(frameworkElement);

            // Act
            int hashCodeA = viewWrapperA.GetHashCode();
            int hashCodeB = viewWrapperB.GetHashCode();

            // Assert
            Assert.That(hashCodeA, Is.EqualTo(hashCodeB));
        }
예제 #6
0
        public void GetHashCodeOverride()
        {
            // ARRANGE
            var viewWrapperA = new ViewWrapper(frameworkElement);
            var viewWrapperB = new ViewWrapper(frameworkElement);

            // ACT
            int hashCodeA = viewWrapperA.GetHashCode();
            int hashCodeB = viewWrapperB.GetHashCode();

            // ASSERT
            Assert.That(hashCodeA, Is.EqualTo(hashCodeB));
        }