Example #1
0
            public void ReturnsPropertyValue()
            {
                var value = Container.GetProperty("Name");

                Assert.Equal("Value", value);
                ContainerPropertiesService.Received(1).GetProperty(Container, "Name");
            }
Example #2
0
            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");
            }