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); }
public void VerifyThatParameterlessContructorExists() { var dialogViewModel = new TimeOfDayParameterTypeDialogViewModel(); Assert.IsFalse(dialogViewModel.IsDeprecated); }