Пример #1
0
        public void Be_Creatable()
        {
            var sut = new NZazuView();

            sut.Should().NotBeNull();
            sut.Should().BeAssignableTo <INZazuWpfView>();

            // and have default values
            sut.FieldFactory.Should().BeAssignableTo <NZazuFieldFactory>();

            // sut.FieldFactory.BehaviorFactory.Should().BeAssignableTo<NZazuFieldBehaviorFactory>();
            // sut.FieldFactory.Serializer.Should().BeAssignableTo<NZazuTableDataXmlSerializer>();
        }
Пример #2
0
        public void Have_scrollbars_and_tabstopable()
        {
            var sut = new NZazuView();

            sut.Should().BeAssignableTo <ScrollViewer>();

            sut.IsTabStop.Should().BeTrue();
            sut.Focusable.Should().BeTrue();

            sut.VerticalContentAlignment.Should().Be(VerticalAlignment.Stretch);
            sut.HorizontalContentAlignment.Should().Be(HorizontalAlignment.Stretch);

            ScrollViewer.GetHorizontalScrollBarVisibility(sut).Should().Be(ScrollBarVisibility.Visible);
            ScrollViewer.GetVerticalScrollBarVisibility(sut).Should().Be(ScrollBarVisibility.Visible);
        }