Esempio n. 1
0
        public void TestShortName()
        {
            //Arrange
            _sculptureName = "AB";

            //Act
            Action action = () => _testSculpture.Sculpture_Name = _sculptureName;

            //Assert
            Assert.ThrowsException <ArgumentException>(action);
        }
Esempio n. 2
0
        public void TestZeroId()
        {
            //Arrange
            _sculptureId = 0;

            //Act
            Action action = () => _testSculpture.ID = _sculptureId;

            //Assert
            Assert.ThrowsException <IndexOutOfRangeException>(action);
        }
Esempio n. 3
0
        public void TestSculptureMoreMaterials()
        {
            // Arrange
            _sculptureMaterials = new List <Material>(17);

            // Act
            Action action = () => _testSculpture.SculptureMaterials = _sculptureMaterials;

            // Assert
            Assert.ThrowsException <ArgumentOutOfRangeException>(action);
        }
Esempio n. 4
0
        public void TestSculptureWrongLastInspection()
        {
            // Arrange
            _sculptureLastInspection = DateTime.Today.AddDays(1);

            // Act
            Action action = () => _testSculpture.LastInspection = _sculptureLastInspection;

            // Assert
            Assert.ThrowsException <ArgumentException>(action);
        }
Esempio n. 5
0
        public void TestSculptureMoreTypes()
        {
            // Arrange
            _sculptureTypes = new List <string>(6);

            // Act
            Action action = () => _testSculpture.SculptureTypes = _sculptureTypes;

            // Assert
            Assert.ThrowsException <ArgumentNullException>(action);
        }
Esempio n. 6
0
        public void TestNullSculptureCulturalHeritage()
        {
            //Arrange
            _sculptureCulturalHeritage = null;

            //Act
            Action action = () => _testSculpture.Cultural_Heritage = _sculptureCulturalHeritage;

            //Assert
            Assert.ThrowsException <ArgumentException>(action);
        }
Esempio n. 7
0
        public void TestShortAddress()
        {
            //Arrange
            _sculptureAddress = "AB";

            //Act
            Action action = () => _testSculpture.Sculpture_Address = _sculptureAddress;

            //Assert
            Assert.ThrowsException <ArgumentException>(action);
        }
Esempio n. 8
0
        public void TestEmptyAddress()
        {
            //Arrange
            _sculptureAddress = string.Empty;

            //Act
            Action action = () => _testSculpture.Sculpture_Address = _sculptureAddress;

            //Assert
            Assert.ThrowsException <ArgumentException>(action);
        }
Esempio n. 9
0
        public void TestShortPlacement()
        {
            //Arrange
            _sculpturePlacement = "AB";

            //Act
            Action action = () => _testSculpture.Sculpture_Placement = _sculpturePlacement;

            //Assert
            Assert.ThrowsException <ArgumentException>(action);
        }
Esempio n. 10
0
        public void TestEmptyPlacement()
        {
            //Arrange
            _sculpturePlacement = string.Empty;

            //Act
            Action action = () => _testSculpture.Sculpture_Placement = _sculpturePlacement;

            //Assert
            Assert.ThrowsException <ArgumentException>(action);
        }