public void StringGeneratorFactoryReturnsNewInstancesForEachCall()
 {
     // Fixture setup
     var sut = new DefaultPrimitiveBuilders();
     // Exercise system
     var result = sut.OfType<StringGenerator>().Single();
     // Verify outcome
     Assert.NotEqual(result.Factory(), result.Factory());
     // Teardown
 }
 public void StringGeneratorHasFactoryThatCreatesCorrectType()
 {
     // Fixture setup
     var sut = new DefaultPrimitiveBuilders();
     // Exercise system
     var result = sut.OfType<StringGenerator>().Single();
     // Verify outcome
     Assert.IsAssignableFrom<Guid>(result.Factory());
     // Teardown
 }
        public void StringGeneratorFactoryReturnsNewInstancesForEachCall()
        {
            // Arrange
            var sut = new DefaultPrimitiveBuilders();
            // Act
            var result = sut.OfType <StringGenerator>().Single();

            // Assert
            Assert.NotEqual(result.Factory(), result.Factory());
        }
        public void StringGeneratorHasFactoryThatCreatesCorrectType()
        {
            // Arrange
            var sut = new DefaultPrimitiveBuilders();
            // Act
            var result = sut.OfType <StringGenerator>().Single();

            // Assert
            Assert.IsAssignableFrom <Guid>(result.Factory());
        }
        public void StringGeneratorFactoryReturnsNewInstancesForEachCall()
        {
            // Fixture setup
            var sut = new DefaultPrimitiveBuilders();
            // Exercise system
            var result = sut.OfType <StringGenerator>().Single();

            // Verify outcome
            Assert.NotEqual(result.Factory(), result.Factory());
            // Teardown
        }
        public void StringGeneratorHasFactoryThatCreatesCorrectType()
        {
            // Fixture setup
            var sut = new DefaultPrimitiveBuilders();
            // Exercise system
            var result = sut.OfType <StringGenerator>().Single();

            // Verify outcome
            Assert.IsAssignableFrom <Guid>(result.Factory());
            // Teardown
        }