ToScriptFragment() public method

public ToScriptFragment ( ) : string
return string
Esempio n. 1
0
        public void CanImplicitlyConvertToString()
        {
            var testCase = new TestCase(@"..\..\Scripts\TestFile1.js", "function1");

            String script = testCase;

            Assert.Equal(testCase.ToScriptFragment(), script);
        }
Esempio n. 2
0
        public String RunTest(TestCase testCase, String setup, String teardown)
        {
            Verify.NotNull(testCase, "testCase");

            return RunTest(testCase.ToScriptFragment(), setup, teardown);
        }