after adding service to parent, throw ArgumentNullException when
serviceInstance or callback is null. In RemoveService, when promote is
false the service must be removed from current container. Fixes bug
#397824. On 1.0 profile, IServiceContainer is a default service offered
by containers. Minor code formatting.
* ServiceContainerTest.cs: Added test for argument checks in
AddService and RemoveService overloads. Added tests for AddService
and RemoveService.
svn path=/trunk/mcs/; revision=105232
* ServiceContainer.cs: Check DefaultServices in GetService in 2.0.
* MenuCommand.cs: Invoke (args) should call Invoke () and leave
args handling for subclasses.
* ServiceContainerTest.cs: Test that DefaultServices is checked in
GetService in 2.0.
svn path=/trunk/mcs/; revision=92354
(2.0 only) for Canceled. Call base ctor in default ctor.
* CheckoutExceptionTest.cs: Added test for ctors and Canceled.
* System_test.dll.sources: Added CheckoutExceptionTest.cs.
svn path=/trunk/mcs/; revision=91854
* ServiceContainerTest.cs: Eliminate unused variable that was giving us
a warning. Also did a little nunit version 2 house cleaning.
svn path=/trunk/mcs/; revision=21570