public void GivenAnNonExistantKey_ShouldPrintTheItem() { // Arrange string nonExistanKey = "non existan key"; string expected = "null"; Dictionary <string, object> dictionary = new Dictionary <string, object>() { { "key", "value" }, }; // Act var result = GetItemByKeyService.PerformantPrintObjectTesteable(dictionary, nonExistanKey); // Assert Assert.AreEqual(expected, result); }
public void GivenAnExistantKey_ShouldPrintTheItem() { // Arrange string existantKey = "exitantKey"; string expected = "existantObject"; Dictionary <string, object> dictionary = new Dictionary <string, object>() { { existantKey, expected }, }; // Act var result = GetItemByKeyService.PerformantPrintObjectTesteable(dictionary, existantKey); // Assert Assert.AreEqual(expected, result); }