public void IdPropertyShouldNotAllowInvalidValue( string value, Type exceptionType )
        {
            // arrange
            var descriptor = new ActivityDescriptor();

            // act
            var ex = (ArgumentException) Assert.Throws( exceptionType, () => descriptor.Id = value );

            // assert
            Assert.Equal( "value", ex.ParamName );
        }
        public void ConstructorShouldSetDefaultProperties()
        {
            // arrange
            var name = "Activity";
            var desc = "";

            // act
            var descriptor = new ActivityDescriptor();

            // assert
            Assert.True( ActivityDescriptor.IsValidIdentifier( descriptor.Id ) );
            Assert.Equal( name, descriptor.Name );
            Assert.Equal( desc, descriptor.Description );
        }
        public void ConstructorShouldSetExpectedProperties()
        {
            // arrange
            var id = Guid.NewGuid().ToString();
            var name = "Test";
            var desc = "Test";

            // act
            var descriptor = new ActivityDescriptor( id, name, desc );

            // assert
            Assert.Equal( id, descriptor.Id );
            Assert.Equal( name, descriptor.Name );
            Assert.Equal( desc, descriptor.Description );
        }