public void TestRemoveService_Null_JustFail() { Type serviceType = null; var target = new DefaultServiceTypeLocator(); var result = target.RemoveService(serviceType); Assert.That(result, Is.False); }
public void TestRemoveService_Empty_Fail() { var serviceType = typeof(Service); var target = new DefaultServiceTypeLocator(); var result = target.RemoveService(serviceType); Assert.That(result, Is.False); Assert.That(target.EnumerateServices().Count(), Is.EqualTo(0)); }
public void TestRemoveService_Registerd_Success() { var serviceType = typeof(Service); var target = new DefaultServiceTypeLocator(); target.AddService(serviceType); var result = target.RemoveService(serviceType); Assert.That(result, Is.True); Assert.That(target.EnumerateServices().Count(), Is.EqualTo(0)); }
public void TestRemoveService_SpecifyNonServiceType_JustFail() { var serviceType = typeof(Service); var target = new DefaultServiceTypeLocator(); target.AddService(serviceType); var result = target.RemoveService(typeof(object)); Assert.That(result, Is.False); Assert.That(target.EnumerateServices().Count(), Is.EqualTo(1)); }
public void TestRemoveService_Registerd_Success() { var serviceType = typeof( Service ); var target = new DefaultServiceTypeLocator(); target.AddService( serviceType ); var result = target.RemoveService( serviceType ); Assert.That( result, Is.True ); Assert.That( target.EnumerateServices().Count(), Is.EqualTo( 0 ) ); }
public void TestRemoveService_Null_JustFail() { Type serviceType = null; var target = new DefaultServiceTypeLocator(); var result = target.RemoveService( serviceType ); Assert.That( result, Is.False ); }
public void TestRemoveService_Empty_Fail() { var serviceType = typeof( Service ); var target = new DefaultServiceTypeLocator(); var result = target.RemoveService( serviceType ); Assert.That( result, Is.False ); Assert.That( target.EnumerateServices().Count(), Is.EqualTo( 0 ) ); }
public void TestRemoveService_SpecifyNonServiceType_JustFail() { var serviceType = typeof( Service ); var target = new DefaultServiceTypeLocator(); target.AddService( serviceType ); var result = target.RemoveService( typeof( object ) ); Assert.That( result, Is.False ); Assert.That( target.EnumerateServices().Count(), Is.EqualTo( 1 ) ); }