public void WhenThePropertyIsNull_GetMetadataValueThrows() { TestProperty testProperty = null !; Assert.Throws <ArgumentNullException>(() => testProperty.GetMetadataValueOrNull(metadataName: "DoesntMatter")); }