public void WasUpdated_ReturnsFalse()
        {
            // Arrange
            var emptyFluentAction = new EmptyFluentAction();

            // Act & Assert
            emptyFluentAction.WasUpdated().ShouldBeFalse();
        }
        public void Set_String_ReturnsSelf(string propertyName, String value)
        {
            // Arrange
            var emptyFluentAction = new EmptyFluentAction();

            // Act & Assert
            emptyFluentAction.Set(value, propertyName).ShouldBeSameAs(emptyFluentAction);
        }
        public void AffectsWpfCommand_Null_ShouldThrow()
        {
            // Arrange
            var emptyFluentAction = new EmptyFluentAction();

            // Act & Assert
            Should.Throw <ArgumentNullException>(() => emptyFluentAction.Affects((IWpfCommand)null));
        }
        public void AffectsProperty_ReturnsSelf()
        {
            // Arrange
            var emptyFluentAction = new EmptyFluentAction();

            // Act & Assert
            emptyFluentAction.Affects(new Fixture().Create <string>()).ShouldBeSameAs(emptyFluentAction);
        }
        public void AffectsIWpfCommand_ReturnsSelf()
        {
            // Arrange
            var fixture           = new Fixture().Customize(new AutoMoqCustomization());
            var emptyFluentAction = new EmptyFluentAction();

            // Act & Assert
            emptyFluentAction.Affects(fixture.Create <IWpfCommand>()).ShouldBeSameAs(emptyFluentAction);
        }
        public void SetRef_ReturnsSelf(string propertyName, int value)
        {
            // Arrange
            var oldValue          = new Fixture().Create <int>();
            var emptyFluentAction = new EmptyFluentAction();

            // Act & Assert
            emptyFluentAction.Set(value, ref oldValue, propertyName).ShouldBeSameAs(emptyFluentAction);
        }
        public void Set_StringWithNullEmptyOrWhiteSpace_ShouldThrow(string propertyName, String value)
        {
            // Arrange
            var emptyFluentAction = new EmptyFluentAction();

            // Act & Assert
            ArgumentException exception = Should.Throw <ArgumentException>(() => emptyFluentAction.Set(value, propertyName));

            exception.Message.ShouldContain("null");
            exception.Message.ShouldContain("empty");
            exception.Message.ShouldContain("white-space characters");
        }
        public void SetRef_WithNullEmptyOrWhiteSpace_ShouldThrow(string propertyName, int value)
        {
            // Arrange
            var oldValue          = new Fixture().Create <int>();
            var emptyFluentAction = new EmptyFluentAction();

            // Act & Assert
            ArgumentException exception = Should.Throw <ArgumentException>(() => emptyFluentAction.Set(value, ref oldValue, propertyName));

            exception.Message.ShouldContain("null");
            exception.Message.ShouldContain("empty");
            exception.Message.ShouldContain("white-space characters");
        }