public void GetParseData()
        {
            string SAMPLE_TEXT =
                "Please write a program that breaks this text into small chucks. Each chunk should have a maximum length of 25 " +
                "characters. The program should try to break on complete sentences or punctuation marks if possible.  " +
                "If a comma or sentence break occurs within 5 characters of the max line length, the line should be broken early.  " +
                "The exception to this rule is when the next line will only contain 5 characters.  Redundant whitespace should " +
                "not be counted between lines, and any duplicate   spaces should be removed.  " +
                "Does this make sense? If not please ask for further clarification, an array containing " +
                "the desired outcome has been provided below. Any text beyond this point is not part of the instructions, " +
                "it's only here to ensure test converge. Finish line. Aaa asdf asdfjk las, asa.";
            var controller = new SplitterController()
            {
                Request = new HttpRequestMessage()
                {
                    Content = new StringContent(SAMPLE_TEXT)
                }
            };

            HttpResponseMessage actionResult = controller.GetParseData();
            var createdResult = actionResult.StatusCode;

            Assert.IsNotNull(createdResult);
            Assert.AreEqual(HttpStatusCode.OK, createdResult);
        }
Exemplo n.º 2
0
    void Start()
    {
        Instance = this;
        //set ups actions
        startentrance = startEntrance;
        startexit     = startExit;
        startgear     = startGearPad;



        currententrance = 0;
        currentexit     = 0;
        currentgearpad  = 0;
        gearpadObject   = new GameObject [100];
        entranceObject  = new GameObject [100];
        exitObject      = new GameObject [100];

        gearpadSprite  = new SpriteRenderer[100];
        entranceSprite = new SpriteRenderer[100];
        exitSprite     = new SpriteRenderer[100];
    }