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. 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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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?
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.
Updated
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.
Logged In: YES
user_id=321872
Hi Richard,
I've now committed the tests and additional changes to
DeleteTask.cs. Thanks again.