public void WhenGettingReference_ThenThrowsNotSupportedException() { element.AddReference(typeof(TestReferenceWithoutItsTypeConverterAndNonConvertibleValue).FullName, "foo://null"); Assert.Throws <NotSupportedException>(() => TestReferenceWithoutItsTypeConverterAndNonConvertibleValue.GetReference(this.element, new Foo())); }
public void WhenAddingReference_ThenThrowsNotSupportedException() { Assert.Throws <NotSupportedException>(() => TestReferenceWithoutItsTypeConverterAndNonConvertibleValue.AddReference(this.element, new Foo { })); }