示例#1
0
        public void SpectatorScreen_GetGrowableItemById()
        {
            //Arrange
            GrowableItem growableItem         = null;
            GrowableItem expectedGrowableItem = growableItemDataSerivce.GetGrowableItemById(1);

            //act
            SpectatorScreenViewModel viewModel = GetViewModel();

            growableItem = viewModel.CurrentGrowableItem;

            //assert
            Assert.AreEqual(expectedGrowableItem, growableItem);
        }
示例#2
0
        public void SpectatorScreen_LoadAllSensorTypes()
        {
            //Arrange
            ObservableCollection <SensorType> sensorTypes         = null;
            ObservableCollection <SensorType> expectedSensorTypes = sensorTypeDataService.GetAllSensorTypes();

            //act
            SpectatorScreenViewModel viewModel = GetViewModel();

            sensorTypes = viewModel.sensorTypeList;

            //assert
            CollectionAssert.AreEqual(expectedSensorTypes, sensorTypes);
        }