public void ProteinCollection_TryGetValue_ReturnsFalseWhenTheCollectionIsEmpty() { // Arrange var collection = new ProteinCollection(); // Act bool result = collection.TryGetValue(1, out var protein); // Assert Assert.IsFalse(result); Assert.IsNull(protein); }
public void ProteinCollection_TryGetValue_ReturnsTrueWhenTheKeyExists() { // Arrange var collection = new ProteinCollection { CreateValidProtein(1) }; // Act bool result = collection.TryGetValue(1, out var protein); // Assert Assert.IsTrue(result); Assert.IsNotNull(protein); }