public void ShouldGenerateCreateClassQuery() { string generatedQuery = new OSqlCreateClass() .Class("TestVertexClass") .ToString(); string query = "CREATE CLASS TestVertexClass"; Assert.AreEqual(generatedQuery, query); }
public void ShouldGenerateCreateClassQuery() { string generatedQuery = new OSqlCreateClass() .Class("TestVertexClass") .ToString(); string query = "CREATE CLASS TestVertexClass"; Assert.AreEqual(generatedQuery, query); }
public void ShouldGenerateCreateClassExtendsQuery() { string generatedQuery = new OSqlCreateClass() .Class("TestVertexClass") .Extends("TestSuperClass") .ToString(); string query = "CREATE CLASS TestVertexClass " + "EXTENDS TestSuperClass"; Assert.Equal(generatedQuery, query); }
public void ShouldGenerateCreateClassExtendsQuery() { string generatedQuery = new OSqlCreateClass() .Class("TestVertexClass") .Extends("TestSuperClass") .ToString(); string query = "CREATE CLASS TestVertexClass " + "EXTENDS TestSuperClass"; Assert.Equal(generatedQuery, query); }
public void ShouldGenerateCreateClassQuery() { string generatedUntypedQuery = new OSqlCreateClass() .Class("TestVertexClass") .Extends("OGraphVertex") .ToString(); string generatedTypedQuery =new OSqlCreateClass() .Class<TestVertexClass>() .Extends<OGraphVertex>() .ToString(); string query = "CREATE CLASS TestVertexClass " + "EXTENDS OGraphVertex"; Assert.AreEqual(generatedUntypedQuery, query); Assert.AreEqual(generatedTypedQuery, query); }