Exemplo n.º 1
0
        public void CreateFactoryThatWrapsHelloWorldMessage()
        {
            var factory = new HelloWorldFactory();
            var hw      = factory.Create();

            Assert.IsType <HelloWorld.Core.HelloWorld>(hw);

            var expected = "Hello, World";

            Assert.Equal(expected, hw.Message);
        }
        public void ReturnsHelloWorld()
        {
            // Arrange
            var target = new HelloWorldFactory();

            // Act
            var result = target.Create();

            // Assert
            Assert.IsType <DefaultHelloWorld>(result);
        }