Menu

#25 vssdelete task

open
nobody
None
5
2005-10-05
2005-10-05
No

Attached is a vssdelete task that allows files or projects
to be delete or optional destoryed by sourcesafe. I hope
that you will consider this for the next release.

Thanks!

Richard

Discussion

  • Ian MacLean

    Ian MacLean - 2005-10-05

    Logged In: YES
    user_id=321872

    Thanks Richard. I've committed your delete task to cvs.
    Unfortunately i don't have sourcesafe installed - so would
    you be able to verify that its all woorking properly. I'll
    have a new nightly build uploaded shortly.

     
  • Richard Adleta

    Richard Adleta - 2005-10-05

    Logged In: YES
    user_id=1356507

    Thanks for the quick response and the consideration for the
    code. I did some whitebox testing of both the delete and
    destroy functionality and both worked as expected. Do you
    prefer an NUnit for it or just execution of the code to
    complete verification?

     
  • Ian MacLean

    Ian MacLean - 2005-10-06

    Logged In: YES
    user_id=321872

    A Nunit test would be ideal. There is already one for vssget
    that you might be able to use as an example.

     
  • Richard Adleta

    Richard Adleta - 2005-10-12

    Updated

     
  • Richard Adleta

    Richard Adleta - 2005-10-12
     
  • Richard Adleta

    Richard Adleta - 2005-10-12
     
  • Richard Adleta

    Richard Adleta - 2005-10-12
     
  • Richard Adleta

    Richard Adleta - 2005-10-12
     
  • Richard Adleta

    Richard Adleta - 2005-10-12

    Logged In: YES
    user_id=1356507

    Per your request, I added NUnit tests for the task. In
    addition, I made the following changes:

    * Moved MockVssItem class and MockVssItems class to
    their own code file from GetTaskTest.cs
    * Modified MockVssItem class to support IsDestroyed
    property
    * Modified DeleteTask to support NUnit test by exposing
    DeleteItem method
    * Created DeleteTaskTest which performs basic NUnit of
    delete and destory operation

    Let me know what you think of the changes.

     
  • Ian MacLean

    Ian MacLean - 2005-10-19

    Logged In: YES
    user_id=321872

    Hi Richard,

    I've now committed the tests and additional changes to
    DeleteTask.cs. Thanks again.

     

Log in to post a comment.