public void VerifyThatPropertiesAreSet() { var viewmodel = new DateParameterTypeDialogViewModel(this.dateParameterType, this.transaction, this.session.Object, true, ThingDialogKind.Create, null, null, null); Assert.AreEqual(viewmodel.Name, this.dateParameterType.Name); Assert.AreEqual(viewmodel.ShortName, this.dateParameterType.ShortName); Assert.AreEqual(viewmodel.IsDeprecated, this.dateParameterType.IsDeprecated); Assert.AreEqual(viewmodel.Symbol, this.dateParameterType.Symbol); Assert.IsNotEmpty(viewmodel.PossibleContainer); }
public void VerifyThatParameterlessContructorExists() { var dialogViewModel = new DateParameterTypeDialogViewModel(); Assert.IsFalse(dialogViewModel.IsDeprecated); }