public void GetSchemaReturnsNull(ComponentPropertyBag propertyBag, XmlSchema schema, Exception e) { "Given a component property bag" .x(() => { propertyBag = new ComponentPropertyBag(); }); "When getting the schema" .x(() => e = Record.Exception(() => schema = propertyBag.GetSchema())); "Then the code should not throw an exception" .x(() => e.Should().BeNull()); "And the schema should be null" .x(() => { schema.Should().BeNull(); }); }