public void SutIsSpecimenBuilder()
        {
            // Arrange
            // Act
            var sut = new UInt16SequenceGenerator();

            // Assert
            Assert.IsAssignableFrom <ISpecimenBuilder>(sut);
        }
        public void SutIsSpecimenBuilder()
        {
            // Fixture setup
            // Exercise system
            var sut = new UInt16SequenceGenerator();

            // Verify outcome
            Assert.IsAssignableFrom <ISpecimenBuilder>(sut);
            // Teardown
        }
        public void CreateWithNullContainerDoesNotThrow()
        {
            // Arrange
            var sut = new UInt16SequenceGenerator();
            // Act
            var dummyRequest = new object();

            sut.Create(dummyRequest, null);
            // Assert (no exception indicates success)
        }
        public void CreateWithNullContainerDoesNotThrow()
        {
            // Fixture setup
            var sut = new UInt16SequenceGenerator();
            // Exercise system
            var dummyRequest = new object();

            sut.Create(dummyRequest, null);
            // Verify outcome (no exception indicates success)
            // Teardown
        }
        public void CreateWithNullRequestWillReturnCorrectResult()
        {
            // Arrange
            var sut = new UInt16SequenceGenerator();
            // Act
            var dummyContainer = new DelegatingSpecimenContext();
            var result         = sut.Create(null, dummyContainer);

            // Assert
            Assert.Equal(new NoSpecimen(), result);
        }
        public void CreateWithNullRequestWillReturnCorrectResult()
        {
            // Fixture setup
            var sut = new UInt16SequenceGenerator();
            // Exercise system
            var dummyContainer = new DelegatingSpecimenContext();
            var result         = sut.Create(null, dummyContainer);

            // Verify outcome
            Assert.Equal(new NoSpecimen(), result);
            // Teardown
        }
        public void CreateWithUInt16RequestWillReturnCorrectResult()
        {
            // Arrange
            var uInt16Request = typeof(ushort);
            var sut           = new UInt16SequenceGenerator();
            // Act
            var dummyContainer = new DelegatingSpecimenContext();
            var result         = sut.Create(uInt16Request, dummyContainer);

            // Assert
            Assert.Equal((ushort)1, result);
        }
        public void CreateWithNonUInt16RequestWillReturnCorrectResult()
        {
            // Arrange
            var nonUInt16Request = new object();
            var sut = new UInt16SequenceGenerator();
            // Act
            var dummyContainer = new DelegatingSpecimenContext();
            var result         = sut.Create(nonUInt16Request, dummyContainer);
            // Assert
            var expectedResult = new NoSpecimen();

            Assert.Equal(expectedResult, result);
        }
        public void CreateWithNonUInt16RequestWillReturnCorrectResult()
        {
            // Fixture setup
            var nonUInt16Request = new object();
            var sut = new UInt16SequenceGenerator();
            // Exercise system
            var dummyContainer = new DelegatingSpecimenContext();
            var result         = sut.Create(nonUInt16Request, dummyContainer);

            // Verify outcome
#pragma warning disable 618
            var expectedResult = new NoSpecimen(nonUInt16Request);
#pragma warning restore 618
            Assert.Equal(expectedResult, result);
            // Teardown
        }