classdef(Hidden,Sealed) NewTestEventData < event.EventData
    %NEWTESTEVENTDATA Event data containg an enumeration for the selected
    %test type
    
    %Copyright 2017 The MathWorks, Inc.
    
    properties
        RequestedTest
    end
    
    methods
        function this = NewTestEventData(testType)
            %Store a TestTypes enumeration as event data
            import internal.EconModeler.Enumerations.TestTypes
            if isa(testType,'TestTypes')
               this.RequestedTest = testType;
            else
                error(message('econ:econModeler:NeedTestTypes'));
            end
        end
    end
    
end

