public void Verify_that_SpecType_XmlName_throws_exception_for_unsupported_type() { var specType = new TestSpecType(); Assert.That(() => ReqIfFactory.XmlName(specType), Throws.Exception.TypeOf <ArgumentException>()); }
public void Verify_that_DatatypeDefinition_XmlName_throws_exception_for_unsupported_type() { var testDatatypeDefinition = new TestDatatypeDefinition(); Assert.That(() => ReqIfFactory.XmlName(testDatatypeDefinition), Throws.Exception.TypeOf <ArgumentException>()); }