public void serialize_whenPathNull()
        {
            var obj = new FileMoveCommand();

            var navigator = obj.XmlSerialize().CreateNavigator();

            if (null == navigator.NameTable)
            {
                Assert.NotNull(navigator.NameTable);
            }
            else
            {
                Assert.True(navigator.Evaluate <bool>(@"1 = count(/file.move[not(@source)][not(@destination)])"));
            }
        }
        public void serialize()
        {
            var obj = new FileMoveCommand
            {
                Source      = @"C:\from.txt",
                Destination = @"C:\to.txt",
                Undo        = true
            };

            var navigator = obj.XmlSerialize().CreateNavigator();

            if (null == navigator.NameTable)
            {
                Assert.NotNull(navigator.NameTable);
            }
            else
            {
                Assert.True(navigator.Evaluate <bool>(@"1 = count(/file.move[@source='C:\from.txt'][@destination='C:\to.txt'][@undo='true'][@unidirectional='false'])"));
            }
        }
        public void serialize_whenPathNull()
        {
            var obj = new FileMoveCommand();

            var navigator = obj.XmlSerialize().CreateNavigator();

            if (null == navigator.NameTable)
            {
                Assert.NotNull(navigator.NameTable);
            }
            else
            {
                Assert.True(navigator.Evaluate<bool>(@"1 = count(/file.move[not(@source)][not(@destination)])"));
            }
        }
        public void serialize()
        {
            var obj = new FileMoveCommand
                          {
                              Source = @"C:\from.txt",
                              Destination = @"C:\to.txt",
                              Undo = true
                          };

            var navigator = obj.XmlSerialize().CreateNavigator();

            if (null == navigator.NameTable)
            {
                Assert.NotNull(navigator.NameTable);
            }
            else
            {
                Assert.True(navigator.Evaluate<bool>(@"1 = count(/file.move[@source='C:\from.txt'][@destination='C:\to.txt'][@undo='true'][@unidirectional='false'])"));
            }
        }