コード例 #1
0
            public void WhenGettingReference_ThenThrowsNotSupportedException()
            {
                element.AddReference(typeof(TestReferenceWithoutItsTypeConverterAndNonConvertibleValue).FullName, "foo://null");

                Assert.Throws <NotSupportedException>(() =>
                                                      TestReferenceWithoutItsTypeConverterAndNonConvertibleValue.GetReference(this.element, new Foo()));
            }
コード例 #2
0
 public void WhenAddingReference_ThenThrowsNotSupportedException()
 {
     Assert.Throws <NotSupportedException>(() =>
                                           TestReferenceWithoutItsTypeConverterAndNonConvertibleValue.AddReference(this.element, new Foo {
     }));
 }