public void SwapDoesIndeedReturnTheOldTarget()
		{
			HotSwappableTargetSource source = new HotSwappableTargetSource(this);
			object foo = source.Swap(new SideEffectObject());
			Assert.IsTrue(object.ReferenceEquals(this, foo),
				"Swap() is not returning the old target.");
		}
		public void RejectsSwapToNull()
		{
			HotSwappableTargetSource source = new HotSwappableTargetSource(null);
			source.Swap(null);
		}
		public void RejectsSwapToNull()
		{
			HotSwappableTargetSource source = new HotSwappableTargetSource(null);
            Assert.Throws<ArgumentNullException>(() => source.Swap(null));
		}
		public void InstantiationWithInitialTarget()
		{
			HotSwappableTargetSource source = new HotSwappableTargetSource(this);
			object foo = source.GetTarget();
			Assert.IsTrue(object.ReferenceEquals(this, foo),
				"Ctor is not storing the supplied target.");
		}
        public void RejectsSwapToNull()
        {
            HotSwappableTargetSource source = new HotSwappableTargetSource(null);

            source.Swap(null);
        }