public void TestShortName() { //Arrange _sculptureName = "AB"; //Act Action action = () => _testSculpture.Sculpture_Name = _sculptureName; //Assert Assert.ThrowsException <ArgumentException>(action); }
public void TestZeroId() { //Arrange _sculptureId = 0; //Act Action action = () => _testSculpture.ID = _sculptureId; //Assert Assert.ThrowsException <IndexOutOfRangeException>(action); }
public void TestSculptureMoreMaterials() { // Arrange _sculptureMaterials = new List <Material>(17); // Act Action action = () => _testSculpture.SculptureMaterials = _sculptureMaterials; // Assert Assert.ThrowsException <ArgumentOutOfRangeException>(action); }
public void TestSculptureWrongLastInspection() { // Arrange _sculptureLastInspection = DateTime.Today.AddDays(1); // Act Action action = () => _testSculpture.LastInspection = _sculptureLastInspection; // Assert Assert.ThrowsException <ArgumentException>(action); }
public void TestSculptureMoreTypes() { // Arrange _sculptureTypes = new List <string>(6); // Act Action action = () => _testSculpture.SculptureTypes = _sculptureTypes; // Assert Assert.ThrowsException <ArgumentNullException>(action); }
public void TestNullSculptureCulturalHeritage() { //Arrange _sculptureCulturalHeritage = null; //Act Action action = () => _testSculpture.Cultural_Heritage = _sculptureCulturalHeritage; //Assert Assert.ThrowsException <ArgumentException>(action); }
public void TestShortAddress() { //Arrange _sculptureAddress = "AB"; //Act Action action = () => _testSculpture.Sculpture_Address = _sculptureAddress; //Assert Assert.ThrowsException <ArgumentException>(action); }
public void TestEmptyAddress() { //Arrange _sculptureAddress = string.Empty; //Act Action action = () => _testSculpture.Sculpture_Address = _sculptureAddress; //Assert Assert.ThrowsException <ArgumentException>(action); }
public void TestShortPlacement() { //Arrange _sculpturePlacement = "AB"; //Act Action action = () => _testSculpture.Sculpture_Placement = _sculpturePlacement; //Assert Assert.ThrowsException <ArgumentException>(action); }
public void TestEmptyPlacement() { //Arrange _sculpturePlacement = string.Empty; //Act Action action = () => _testSculpture.Sculpture_Placement = _sculpturePlacement; //Assert Assert.ThrowsException <ArgumentException>(action); }