public void GivenOnlyDbShouldRenderOnlyDbAndLeavePlaceForSchema() { const string someDb = "someDb"; var ct = new ScopeResolver(someDb); string releaseScript = ct.Write(); Assert.That(releaseScript, Is.EqualTo(String.Format("[{0}]..", someDb))); }
public void GivenSchemaShouldRenderSchema() { const string someSchema = "someSchema"; var ct = new ScopeResolver(schemaName:someSchema); string releaseScript = ct.Write(); Assert.That(releaseScript, Is.EqualTo(String.Format("[{0}].", someSchema))); }
public void GivenNothingShouldRenderBlank() { var ct = new ScopeResolver(); string releaseScript = ct.Write(); Assert.That(releaseScript, Is.EqualTo(string.Empty)); }