Class ScenarioTest
Description résumée pour ScenarioTest
Inherited Members
Namespace: Xareus.Scenarios.Tests
Assembly: Xareus.Scenarios.Tests.dll
Syntax
[TestClass]
[DeploymentItem("log4net.xml")]
public class ScenarioTest
Constructors
ScenarioTest()
Declaration
public ScenarioTest()
Properties
TestContext
Obtient ou définit le contexte de test qui fournit des informations sur la série de tests active ainsi que ses fonctionnalités.
Declaration
public TestContext TestContext { get; set; }
Property Value
Type | Description |
---|---|
TestContext |
Methods
CancelForceFireTest()
Declaration
[TestMethod]
[DeploymentItem("scenario.xml")]
[DeploymentItem("scenario_StateMachine.xml")]
public void CancelForceFireTest()
ChekWillTriggerWillBypass()
Declaration
[TestMethod]
[DeploymentItem("SubnetTest.xml")]
public void ChekWillTriggerWillBypass()
ComputeDecorationsTest()
Declaration
[TestMethod]
[DeploymentItem("DecorationsTest.xml")]
public void ComputeDecorationsTest()
DecisionTreeTest()
Declaration
[TestMethod]
[DeploymentItem("scenario_DecisionTree.xml")]
[DeploymentItem("scenario_DecisionTree_Variable.xml")]
public void DecisionTreeTest()
DelayedEffectorTest()
Declaration
[TestMethod]
[DeploymentItem("DelayedEffectorTest.xml")]
[DeploymentItem("DelayedEffectorTest_StateMachine.xml")]
public void DelayedEffectorTest()
EnableDisableTest()
Declaration
[TestMethod]
[DeploymentItem("scenario.xml")]
public void EnableDisableTest()
ExtendedInfoTest()
Declaration
[TestMethod]
[DeploymentItem("ScenarioWithExtendedInformationTest.xml")]
public void ExtendedInfoTest()
ExternalScenarioTest()
Declaration
[TestMethod]
[DeploymentItem("ExternalScenarioTest.xml")]
[DeploymentItem("ExternalScenario.xml")]
public void ExternalScenarioTest()
FinalTest()
Declaration
[TestMethod]
[DeploymentItem("scenario.xml")]
[DeploymentItem("scenario_StateMachine.xml")]
[DeploymentItem("scenario_DecisionTree.xml")]
public void FinalTest()
ForceFireTest()
Declaration
[TestMethod]
[DeploymentItem("scenario.xml")]
[DeploymentItem("scenario_StateMachine.xml")]
public void ForceFireTest()
GetAllSequencesTest()
Declaration
[TestMethod]
[DeploymentItem("ExternalScenarioInSubfolderTest.xml")]
[DeploymentItem("Subfolder\\ExternalScenarioInSubfolder.xml", "Subfolder")]
[DeploymentItem("Subfolder\\SubSubfolder\\SimpleScenario.xml", "Subfolder\\SubSubfolder")]
public void GetAllSequencesTest()
GetAllTransitionsTest()
Declaration
[TestMethod]
[DeploymentItem("DecorationsTest.xml")]
[DeploymentItem("ExternalScenarioInSubfolderTest.xml")]
[DeploymentItem("Subfolder\\ExternalScenarioInSubfolder.xml", "Subfolder")]
[DeploymentItem("Subfolder\\SubSubfolder\\SimpleScenario.xml", "Subfolder\\SubSubfolder")]
public void GetAllTransitionsTest()
GetFunctions()
Declaration
[TestMethod]
[DeploymentItem("scenario.xml")]
[DeploymentItem("scenario_StateMachine.xml")]
[DeploymentItem("scenario_DecisionTree.xml")]
[DeploymentItem("SubnetTest.xml")]
[DeploymentItem("ExternalScenarioTest.xml")]
[DeploymentItem("ExternalScenario.xml")]
public void GetFunctions()
GetInstantiatedFunctions()
Declaration
[TestMethod]
[DeploymentItem("scenario.xml")]
[DeploymentItem("scenario_StateMachine.xml")]
[DeploymentItem("scenario_DecisionTree.xml")]
[DeploymentItem("SubnetTest.xml")]
[DeploymentItem("ExternalScenarioTest.xml")]
[DeploymentItem("ExternalScenario.xml")]
public void GetInstantiatedFunctions()
GetSequencesThatHoldTokens()
Declaration
[TestMethod]
[DeploymentItem("scenario.xml")]
[DeploymentItem("scenario_StateMachine.xml")]
[DeploymentItem("scenario_DecisionTree.xml")]
[DeploymentItem("SubnetTest.xml")]
[DeploymentItem("ExternalScenarioTest.xml")]
[DeploymentItem("ExternalScenario.xml")]
public void GetSequencesThatHoldTokens()
InitialTest()
Declaration
[TestMethod]
[DeploymentItem("scenario.xml")]
[DeploymentItem("scenario_StateMachine.xml")]
[DeploymentItem("scenario_DecisionTree.xml")]
public void InitialTest()
LoadFromFileTest()
Declaration
[TestMethod]
[DeploymentItem("EmptyScenario.xml")]
[DeploymentItem("scenario.xml")]
[DeploymentItem("scenario_StateMachine.xml")]
[DeploymentItem("scenario_DecisionTree.xml")]
[DeploymentItem("DecorationsTest.xml")]
[DeploymentItem("SubnetTest.xml")]
[DeploymentItem("ExternalScenario.xml")]
[DeploymentItem("ExternalScenarioTest.xml")]
[DeploymentItem("Subfolder\\ExternalScenarioInSubFolder.xml", "Subfolder")]
[DeploymentItem("Subfolder\\SubSubfolder\\SimpleScenario.xml", "Subfolder\\SubSubfolder")]
[DeploymentItem("ExternalScenarioInSubFolderTest.xml")]
[DeploymentItem("TokensTest.xml")]
[DeploymentItem("TransitionFiredTest.xml")]
[DeploymentItem("PriorityTest.xml")]
[DeploymentItem("ScenarioWithExtendedInformationTest.xml")]
public void LoadFromFileTest()
LoopTest()
Declaration
[TestMethod]
[DeploymentItem("LoopTest.xml")]
public void LoopTest()
MyClassInitialize(TestContext)
Declaration
[ClassInitialize]
public static void MyClassInitialize(TestContext testContext)
Parameters
Type | Name | Description |
---|---|---|
TestContext | testContext |
PriorityTest()
Declaration
[TestMethod]
[DeploymentItem("PriorityTest.xml")]
public void PriorityTest()
ResetTest()
Declaration
[TestMethod]
[DeploymentItem("TokensTest.xml")]
public void ResetTest()
RunStateMachineTest()
Declaration
[TestMethod]
[DeploymentItem("scenario_StateMachine.xml")]
public void RunStateMachineTest()
SaveToFileTest()
Declaration
[TestMethod]
[DeploymentItem("Scenario.xml")]
[DeploymentItem("Scenario_StateMachine.xml")]
[DeploymentItem("scenario_DecisionTree.xml")]
[DeploymentItem("ExternalScenarioTest.xml")]
[DeploymentItem("ExternalScenario.xml")]
[DeploymentItem("ScenarioWithEmptyElements.xml")]
public void SaveToFileTest()
ScenarioStateSaveFailTest()
Declaration
[TestMethod]
[ExpectedException(typeof(ArgumentNullException))]
public void ScenarioStateSaveFailTest()
ScenarioStateSaveLoadTest()
Declaration
[TestMethod]
[DeploymentItem("TokensTest.xml")]
[DeploymentItem("SubnetWithExternalTest.xml")]
[DeploymentItem("ExternalScenario.xml")]
public void ScenarioStateSaveLoadTest()
ScenarioWithErrorsTest()
Declaration
[TestMethod]
[DeploymentItem("ScenarioWithErrors.xml")]
public void ScenarioWithErrorsTest()
SensorTest()
Declaration
[TestMethod]
[DeploymentItem("SensorTest.xml")]
public void SensorTest()
SequenceStateSaveFailTest()
Declaration
[TestMethod]
[ExpectedException(typeof(ArgumentNullException))]
public void SequenceStateSaveFailTest()
SequenceStateSaveLoadTest()
Declaration
[TestMethod]
[DeploymentItem("SubnetTest.xml")]
[DeploymentItem("SubnetWithExternalTest.xml")]
[DeploymentItem("ExternalScenario.xml")]
public void SequenceStateSaveLoadTest()
SubSequencesTest()
Declaration
[TestMethod]
[DeploymentItem("SubSequencesTest.xml")]
public void SubSequencesTest()
SubnetTest()
Declaration
[TestMethod]
[DeploymentItem("SubnetTest.xml")]
public void SubnetTest()
SubnetWithExternalTest()
Declaration
[TestMethod]
[DeploymentItem("SubnetWithExternalTest.xml")]
[DeploymentItem("ExternalScenario.xml")]
public void SubnetWithExternalTest()
TestConvertPetriNetToStateMachine()
Declaration
[TestMethod]
[DeploymentItem("TokensTest.xml")]
public void TestConvertPetriNetToStateMachine()
TestConvertStateMachineToPetriNet()
Declaration
[TestMethod]
[DeploymentItem("scenario_StateMachine.xml")]
public void TestConvertStateMachineToPetriNet()
TokensTest()
Declaration
[TestMethod]
[DeploymentItem("TokensTest.xml")]
public void TokensTest()
TransitionFiredSensorTest()
Declaration
[TestMethod]
[DeploymentItem("scenario.xml")]
[DeploymentItem("TransitionFiredTest.xml")]
public void TransitionFiredSensorTest()