Пример #1
0
        public void HaveInnerTable_FalseReturned()
        {
            // Arrange
            var viewModel = new SimpleBusStopViewModel();

            // Act
            var haveInnerTable = viewModel.HaveInnerTable();

            // Assert
            haveInnerTable.ShouldBeFalse();
        }
Пример #2
0
        public void GetRow_ModelValuesReturned()
        {
            // Arrange
            var viewModel = new SimpleBusStopViewModel();

            // Act
            viewModel.Model = ViewModelTestData.SimpleBusStop;
            var rowValues = viewModel.GetRow();

            // Assert
            rowValues[0].Should().Be(viewModel.Model.Id.ToString());
            rowValues[1].Should().Be(viewModel.Model.Title);
            rowValues[2].Should().Be(viewModel.Model.Name);
        }
Пример #3
0
        public void GetColumns_ColumnNamesAreNotEmpty()
        {
            // Arrange
            var viewModel = new SimpleBusStopViewModel();

            // Act
            var columns = viewModel.GetColumns();

            // Assert
            foreach (var colName in columns)
            {
                colName.Should().NotBeNullOrEmpty();
            }
        }