コード例 #1
0
        public void CreateExisting_ThrowsArgumentException_WhenIdIsLessThanZero(int id)
        {
            // Assemble

            // Act
            Action createExisting = () => SharedAppSettingBuilder.CreateExisting(id);

            // Assert
            createExisting.Should().Throw <ArgumentException>();
        }
コード例 #2
0
        public void CreateExisting_ReturnsKeyHolder()
        {
            // Assemble

            // Act
            var actual = SharedAppSettingBuilder.CreateExisting(Create <int>());

            // Assert
            actual.Should().BeAssignableTo <IKeyHolder>();
        }