public void BlockTypeChangedEvent_Raised_true()
        {
            //Assign
            bool wasRaised = false;

            ViewModel = new BlockConditionsWindowViewModel();
            ViewModel.BlockTypeChangedEvent += (s, e) => wasRaised = true;
            //Act
            ViewModel.OnBlockTypeChanged();
            //Assert
            Assert.That(wasRaised);
        }
        public void Download_ComboboxSelectedItemChangeToCorrectBlockType(string input, string ouput)
        {
            //Assign
            ViewModel = new BlockConditionsWindowViewModel();
            ViewModel._keyenceCommunicationService = new MockKeyenceCommunicationService(input);
            ViewModel._dialogService = new StubDialogServiceAlwaysYes();
            string actual;
            string expect;

            string[] inputStringArray = input.Split(',');
            //Act
            ViewModel.BlockConditionDownload();
            expect = inputStringArray[3];
            //actual = ViewModel.CurrentblockConditionModel.BlockType;
            ViewModel.BlockType_ChangedByBlockClass();
            ViewModel.OnBlockTypeChanged();
            actual = ViewModel.ComboboxSelectedItem.BlockTypeIDcode;

            //Assert
            Assert.AreEqual(expect, actual);
        }