Exemplo n.º 1
0
        public void ProteinCollection_Contains_ReturnsFalseWhenTheCollectionIsEmpty()
        {
            // Arrange
            var collection = new ProteinCollection();
            // Act
            bool result = collection.Contains(1);

            // Assert
            Assert.IsFalse(result);
        }
Exemplo n.º 2
0
        public void ProteinCollection_Contains_ReturnsTrueWhenTheKeyExists()
        {
            // Arrange
            var collection = new ProteinCollection
            {
                CreateValidProtein(1)
            };
            // Act
            bool result = collection.Contains(1);

            // Assert
            Assert.IsTrue(result);
        }