Beispiel #1
0
        public void TestClone1()
        {
            var window = new WindowSettings
            {
                Top    = 1,
                Left   = 2,
                Width  = 3,
                Height = 4,
                State  = WindowState.Maximized
            };
            var clone = window.Clone();

            clone.Should().NotBeNull();
            clone.Should().NotBeSameAs(window);
            clone.Top.Should().Be(1);
            clone.Left.Should().Be(2);
            clone.Width.Should().Be(3);
            clone.Height.Should().Be(4);
            clone.State.Should().Be(WindowState.Maximized);
        }