C# Class Tests.Tests

Mostra file Open project: inkle/ink Class Usage Examples

Public Methods

Method Description
TestElseBranches ( ) : void
TestTags ( ) : void
TestTunnelOnwardsDivertOverride ( ) : void
Tests ( TestMode mode ) : System

Protected Methods

Method Description
CompileString ( string str, bool countAllVisits = false, bool testingErrors = false ) : Story
CompileStringWithoutRuntime ( string str, bool testingErrors = false ) : Ink.Parsed.Story

Private Methods

Method Description
HadError ( string matchStr = null ) : bool
HadErrorOrWarning ( string matchStr, List list ) : bool
HadWarning ( string matchStr = null ) : bool
TestArgumentNameCollisions ( ) : void
TestArgumentShouldntConflictWithGatherElsewhere ( ) : void
TestArithmetic ( ) : void
TestBasicStringLiterals ( ) : void
TestBasicTunnel ( ) : void
TestBlanksInInlineSequences ( ) : void
TestCallStackEvaluation ( ) : void
TestChoiceCount ( ) : void
TestChoiceDivertsToDone ( ) : void
TestChoiceWithBracketsOnly ( ) : void
TestCommentEliminator ( ) : void
TestCommentEliminatorMixedNewlines ( ) : void
TestCompareDivertTargets ( ) : void
TestComplexTunnels ( ) : void
TestConditionalChoiceInWeave ( ) : void
TestConditionalChoiceInWeave2 ( ) : void
TestConditionalChoices ( ) : void
TestConditionals ( ) : void
TestConst ( ) : void
TestConstRedefinition ( ) : void
TestDefaultChoices ( ) : void
TestDefaultSimpleGather ( ) : void
TestDivertInConditional ( ) : void
TestDivertNotFoundError ( ) : void
TestDivertToWeavePoints ( ) : void
TestDoneStopsThread ( ) : void
TestEmpty ( ) : void
TestEmptyChoice ( ) : void
TestEmptyMultilineConditionalBranch ( ) : void
TestEmptySequenceContent ( ) : void
TestEnd ( ) : void
TestEnd2 ( ) : void
TestEndOfContent ( ) : void
TestErrorHandler ( string message, ErrorType errorType ) : void
TestEscapeCharacter ( ) : void
TestEvaluatingInkFunctionsFromGame ( ) : void
TestEvaluatingInkFunctionsFromGame2 ( ) : void
TestExternalBinding ( ) : void
TestFactorialByReference ( ) : void
TestFactorialRecursive ( ) : void
TestFunctionCallRestrictions ( ) : void
TestFunctionPurityChecks ( ) : void
TestGatherAtFlowEnd ( ) : void
TestGatherChoiceSameLine ( ) : void
TestGatherReadCountWithInitialSequence ( ) : void
TestHasReadOnChoice ( ) : void
TestHelloWorld ( ) : void
TestIdentifersCanStartWithNumbers ( ) : void
TestImplicitInlineGlue ( ) : void
TestImplicitInlineGlueB ( ) : void
TestImplicitInlineGlueC ( ) : void
TestInclude ( ) : void
TestIncrement ( ) : void
TestKnotDotGather ( ) : void
TestKnotTerminationSkipsGlobalObjects ( ) : void
TestKnotThreadInteraction ( ) : void
TestKnotThreadInteraction2 ( ) : void
TestLeadingNewlineMultilineSequence ( ) : void
TestLeftRightGlueMatching ( ) : void
TestLiteralUnary ( ) : void
TestLogicInChoices ( ) : void
TestMultiThread ( ) : void
TestMultipleConstantReferences ( ) : void
TestNestedInclude ( ) : void
TestNestedPassByReference ( ) : void
TestNonTextInChoiceInnerContent ( ) : void
TestOnceOnlyChoicesCanLinkBackToSelf ( ) : void
TestOnceOnlyChoicesWithOwnContent ( ) : void
TestPathToSelf ( ) : void
TestPaths ( ) : void
TestPrintNum ( ) : void
TestQuoteCharacterSignificance ( ) : void
TestReadCountAcrossCallstack ( ) : void
TestReadCountAcrossThreads ( ) : void
TestReadCountDotSeparatedPath ( ) : void
TestRequireVariableTargetsTyped ( ) : void
TestReturnTextWarning ( ) : void
TestSameLineDivertIsInline ( ) : void
TestSetNonExistantVariable ( ) : void
TestShouldntGatherDueToChoice ( ) : void
TestShuffleStackMuddying ( ) : void
TestSimpleGlue ( ) : void
TestStickyChoicesStaySticky ( ) : void
TestStringConstants ( ) : void
TestStringParserA ( ) : void
TestStringParserABAB ( ) : void
TestStringParserABAOptional ( ) : void
TestStringParserABAOptional2 ( ) : void
TestStringParserB ( ) : void
TestStringTypeCoersion ( ) : void
TestStringsInChoices ( ) : void
TestTempGlobalConflict ( ) : void
TestTempUsageInOptions ( ) : void
TestTemporariesAtGlobalScope ( ) : void
TestThreadDone ( ) : void
TestThreadInLogic ( ) : void
TestTunnelOnwardsAfterTunnel ( ) : void
TestTunnelVsThreadBehaviour ( ) : void
TestTurnsSince ( ) : void
TestTurnsSinceNested ( ) : void
TestTurnsSinceWithVariableTarget ( ) : void
TestUnbalancedWeaveIndentation ( ) : void
TestVariableDeclarationInConditional ( ) : void
TestVariableDivertTarget ( ) : void
TestVariableGetSetAPI ( ) : void
TestVariableObserver ( ) : void
TestVariablePointerRefFromKnot ( ) : void
TestVariableSwapRecurse ( ) : void
TestVariableTunnel ( ) : void
TestVisitCountsWhenChoosing ( ) : void
TestWeaveGathers ( ) : void
TestWeaveOptions ( ) : void
TestWhitespace ( ) : void
TestWrongVariableDivertTargetReference ( ) : void

Method Details

CompileString() protected method

protected CompileString ( string str, bool countAllVisits = false, bool testingErrors = false ) : Story
str string
countAllVisits bool
testingErrors bool
return Story

CompileStringWithoutRuntime() protected method

protected CompileStringWithoutRuntime ( string str, bool testingErrors = false ) : Ink.Parsed.Story
str string
testingErrors bool
return Ink.Parsed.Story

TestElseBranches() public method

public TestElseBranches ( ) : void
return void

TestTags() public method

public TestTags ( ) : void
return void

TestTunnelOnwardsDivertOverride() public method

public TestTunnelOnwardsDivertOverride ( ) : void
return void

Tests() public method

public Tests ( TestMode mode ) : System
mode TestMode
return System