Example #1
0
        public void Should_Return_ScannerName_When_Selected_Scanner_Exist()
        {
            // Arrange
            var ViewModel = new MainViewModel();
            ViewModel.Device = "97853ca8-3627-4163-ad69-59910b4c2aeb";

            // Act
            var device = ViewModel.GetCurrentScannerName();

            // Assert
            Assert.AreEqual( "Second scanner", device );
        }
Example #2
0
        public void Should_Return_First_ScannerName_When_Selected_Scanner_NotExist()
        {
            // Arrange
            var ViewModel = new MainViewModel();
            ViewModel.Device = "";

            // Act
            var device = ViewModel.GetCurrentScannerName();

            // Assert
            Assert.AreEqual( "First scanner", device );
        }