Пример #1
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");
            }
Пример #2
0
 public GetProperty()
 {
     ContainerPropertiesService.GetProperty(Container, "Name").Returns("Value");
 }