コード例 #1
0
        public void Scan_HappyFlow_RaisesPropertyChangedOnAccountNumbers()
        {
            var    viewModel    = new ScanViewModel();
            string propertyName = null;

            viewModel.PropertyChanged += (s, e) => { propertyName = e.PropertyName; };
            viewModel.Scan(Resources.FileWith1Entries);

            Assert.IsNotNull(propertyName);
            Assert.That(propertyName, Is.EqualTo("AccountNumbers"));
        }
コード例 #2
0
 public void WhenIScanTheEntry()
 {
     scanViewModel.Scan(ScenarioContext.Current.Get <string>("file"));
 }