Exemple #1
0
        public void TestReplacementValue_RemoveInstitutionIdFromEmptyListOfInstitutionIds_ThrowsArgumentException()
        {
            //Arrange
            ReplacementValue myReplacementValue = new ReplacementValue("Advent", "522bb79455449d881b004d27");

            myReplacementValue.RemoveInstituionId("522bb79455449d881b004d27");

            //Act
            myReplacementValue.RemoveInstituionId("522bb79455449d881b004d27");
        }
Exemple #2
0
        public void TestReplacementValue_RemoveInstituionIdThatDoesNotExistInTheList_ThrowsArgumentException()
        {
            //Arrange
            ReplacementValue myReplacementValue = new ReplacementValue("Advent", "522bb79455449d881b004d27");

            //Act
            myReplacementValue.RemoveInstituionId("8899979455449d881b004d27");
        }
Exemple #3
0
        public void TestReplacementValue_RemoveInstitutionId()
        {
            //Arrange
            ReplacementValue myReplacementValue = new ReplacementValue("Advent", "522bb79455449d881b004d27");

            myReplacementValue.AddInsitutionId("999bb79455449d881b004d27");

            //Act
            myReplacementValue.RemoveInstituionId("999bb79455449d881b004d27");

            //Assert
            CollectionAssert.AreEqual(new List <String> {
                "522bb79455449d881b004d27"
            }, myReplacementValue.getInsitutionIds());
        }