public void Test_Constructor_Throws_When_Given_Null_Value_Selector() { Assert.Throws <ArgumentNullException>(() => { ValueScopedBinding <object, bool> binding = new ValueScopedBinding <object, bool>(null); }); }
public void Test_SetBinding_Throws_When_Given_Null_Binding() { ValueScopedBinding <IHasSample, bool> binding = new ValueScopedBinding <IHasSample, bool>(() => true); Assert.Throws <ArgumentNullException>(() => { binding.SetBinding(null); }); }