Exemplo n.º 1
0
 public void Test_Constructor_Throws_When_Given_Null_Value_Selector()
 {
     Assert.Throws <ArgumentNullException>(() =>
     {
         ValueScopedBinding <object, bool> binding = new ValueScopedBinding <object, bool>(null);
     });
 }
Exemplo n.º 2
0
        public void Test_SetBinding_Throws_When_Given_Null_Binding()
        {
            ValueScopedBinding <IHasSample, bool> binding = new ValueScopedBinding <IHasSample, bool>(() => true);

            Assert.Throws <ArgumentNullException>(() =>
            {
                binding.SetBinding(null);
            });
        }