public void GetSchemas_WhenEmpty_YieldsEmptyStream() { var schemas = new StructureSchemas(new StructureTypeFactory(), new AutoStructureSchemaBuilder()); var numOfSchemas = schemas.GetSchemas().Count(); Assert.AreEqual(0, numOfSchemas); }
public void GetSchemas_WhenContainingASchema_YieldsOneSchema() { var schemas = new StructureSchemas(new StructureTypeFactory(), new AutoStructureSchemaBuilder()); var schema = schemas.GetSchema<X>(); var fetchedSchema = schemas.GetSchemas().First(); Assert.AreEqual(schema, fetchedSchema); }
public void GetSchemas_WhenContainingASchema_YieldsOneSchema() { var schemas = new StructureSchemas(new StructureTypeFactory(), new AutoStructureSchemaBuilder()); var schema = schemas.GetSchema <X>(); var fetchedSchema = schemas.GetSchemas().First(); Assert.AreEqual(schema, fetchedSchema); }