public void WhenPropertyDoesNotExist_ReturnsNull() { ContainerPropertiesService.GetProperty(Container, "Unknown").Returns((string)null); var value = Container.GetProperty("Unknown"); Assert.Null(value); ContainerPropertiesService.Received(1).GetProperty(Container, "Unknown"); }
public GetProperty() { ContainerPropertiesService.GetProperty(Container, "Name").Returns("Value"); }