public void MissingResourceThrows(string script) { var result = new DbScript { XmlRoot = script }; Assert.That(() => result.Load(), Throws.InstanceOf <MissingManifestResourceException>()); }
public void MissingFileThrows(string script, string fileName) { var result = new DbScript { XmlRoot = script }; Assert.That(() => result.Load(), Throws.InstanceOf <FileNotFoundException>()); }
public void MissingResourceThrows(string script) { var result = new DbScript {XmlRoot = script}; Assert.That(() => result.Load(), Throws.InstanceOf<MissingManifestResourceException>()); }
public void MissingFileThrows(string script, string fileName) { var result = new DbScript {XmlRoot = script}; Assert.That(() => result.Load(), Throws.InstanceOf<FileNotFoundException>()); }