public void ShouldSetOrientationValuesSetThirdColumnWidth() { //arrange viewModel = new CollectionViewSampleViewModel(DataManager); //act DeviceManager.Orientation = Devices.Landscape.ToString(); viewModel.SetOrientationValues(); //assert Assert.AreEqual(new GridLength(1.5, GridUnitType.Star), viewModel.ThirdColumnWidth); }
public void ShouldSetOrientationValuesSetSecondColumnWidthToLowerValueWhenInPortrait() { //arrange viewModel = new CollectionViewSampleViewModel(DataManager); //act DeviceManager.Orientation = Devices.Portrait.ToString(); viewModel.SetOrientationValues(); //assert Assert.AreEqual(new GridLength(5.5, GridUnitType.Star), viewModel.SecondColumnWidth); }