Example #1
0
        public void VerifyThatPropertiesAreSet()
        {
            var viewmodel = new TimeOfDayParameterTypeDialogViewModel(this.timeOfDayParameterType, this.transaction, this.session.Object, true, ThingDialogKind.Create, null, null, null);

            Assert.AreEqual(viewmodel.Name, this.timeOfDayParameterType.Name);
            Assert.AreEqual(viewmodel.ShortName, this.timeOfDayParameterType.ShortName);
            Assert.AreEqual(viewmodel.IsDeprecated, this.timeOfDayParameterType.IsDeprecated);
            Assert.AreEqual(viewmodel.Symbol, this.timeOfDayParameterType.Symbol);
            Assert.IsNotEmpty(viewmodel.PossibleContainer);
        }
Example #2
0
        public void VerifyThatParameterlessContructorExists()
        {
            var dialogViewModel = new TimeOfDayParameterTypeDialogViewModel();

            Assert.IsFalse(dialogViewModel.IsDeprecated);
        }