Represents a discriminator convention where the discriminator is provided by the class map of the actual type.
Inheritance: StandardDiscriminatorConvention
 public void TestConstructorThrowsWhenElementNameIsNull()
 {
     Assert.Throws<ArgumentNullException>(() => { var discriminatorConvention = new ScalarDiscriminatorConvention(null); });
 }
 public void TestConstructorThrowsWhenElementNameContainsNulls()
 {
     Assert.Throws<ArgumentException>(() => { var discriminatorConvention = new ScalarDiscriminatorConvention("a\0b"); });
 }