public void Get_can_parse_a_valid_fixture() { var response = FixtureImporter.Get(FixtureType.Accounts, ValidFixtureName); response.StatusCode.Should().Be(HttpStatusCode.Created); response.Headers.Should().ContainKeys("Content-Type", "Location"); response.Xml.Should().NotBeNullOrWhiteSpace(); }
public void Get_does_not_throw_FileNotFoundException_when_a_fixture_exists() { Action a = () => FixtureImporter.Get(ValidFixtureType, ValidFixtureName); a.ShouldNotThrow <FileNotFoundException>(); }
public void Get_throws_InvalidEnumArgumentException_when_passed_invalid_FixtureType() { Action a = () => FixtureImporter.Get((FixtureType)100, ValidFixtureName); a.ShouldThrow <InvalidEnumArgumentException>(); }
public void Get_throws_FileNotFoundException_when_no_fixture_exists_for_otherwise_valid_input() { Action a = () => FixtureImporter.Get(ValidFixtureType, FixtureNameThatDoesNotExist); a.ShouldThrow <FileNotFoundException>(); }
public void Get_throws_ArgumentException_when_passed_invalid_name(string name) { Action a = () => FixtureImporter.Get(0, name); a.ShouldThrow <ArgumentException>(); }