Ejemplo n.º 1
0
        public void FahClientSettingsModel_ValidateAcceptance_ReturnsTrueWhenModelHasNoError()
        {
            var model = new FahClientSettingsModel();

            model.Name   = "foo";
            model.Server = "foo";
            Assert.IsTrue(model.ValidateAcceptance());
        }
Ejemplo n.º 2
0
        public void FahClientSettingsModel_ValidateAcceptance_RaisesPropertyChanged()
        {
            // Arrange
            var    model        = new FahClientSettingsModel();
            string propertyName = null;

            model.PropertyChanged += (s, e) => propertyName = e.PropertyName;
            // Act
            model.ValidateAcceptance();
            // Assert
            Assert.AreEqual(String.Empty, propertyName);
        }
Ejemplo n.º 3
0
        public void FahClientSettingsModel_ValidateAcceptance_ReturnsTrueWhenModelHasError()
        {
            var model = new FahClientSettingsModel();

            Assert.IsFalse(model.ValidateAcceptance());
        }