public void TestMethodIocBindingConstructing2() { var iocBinding = new IocBinding(typeof(TestTypeIocClass)); Assert.AreEqual(iocBinding.ServiceKey, null, "IocBinding - expected value null for ServiceKey"); Assert.AreEqual(iocBinding.ServiceType, typeof(TestTypeIocClass), "IocBinding - expected value TestTypeIocClass for ServiceType"); }
public void TestMethodIocBindingConstructing2() { var iocBinding = new IocBinding(typeof(TestTypeIocClass)); Assert.Equal(iocBinding.ServiceKey, null); Assert.Equal(iocBinding.ServiceType, typeof(TestTypeIocClass)); }
public void TestMethodIocBindingConstructing1() { var iocBinding = new IocBinding(); Assert.AreEqual(iocBinding.ServiceKey, null, "IocBinding - expected value null for ServiceKey"); Assert.AreEqual(iocBinding.ServiceType, null, "IocBinding - expected value null for ServiceType"); }
public void TestMethodIocBindingConstructing1() { var iocBinding = new IocBinding(); Assert.Equal(iocBinding.ServiceKey, null); Assert.Equal(iocBinding.ServiceType, null); }
public void TestMethodIocBindingException() { var iocBinding = new IocBinding(); // ReSharper disable AssignNullToNotNullAttribute UnitTestInternal.AssertThrows(typeof(ArgumentNullException), () => iocBinding.ProvideValue(null), " IocBinding - expected ArgumentNullException"); // ReSharper restore AssignNullToNotNullAttribute }